How to get selected value of a html select with asp.net

Posted by HasanGursoy on Stack Overflow See other posts from Stack Overflow or by HasanGursoy
Published on 2010-03-04T10:10:59Z Indexed on 2010/04/16 20:43 UTC
Read the original article Hit count: 438

Filed under:
|
|

I have code below:

<select id="testSelect">
    <option value="1">One</option>
    <option value="2">Two</option>
</select>
<asp:Button ID="btnTest" runat="server" Text="Test it!" onclick="btnTest_Click" />

I need to get selected options' value on postback. How can I do this with asp.net?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about html