I have the following HTML source
<form name="Register1" action="Register.aspx" id="registerform" method="post"
runat="server" style="margin-top: 15px;">
<input type="radio" name="Gender" value="male" />male
<input type="radio" name="Gender" value="female" />female
</form>
My question is how can I get the selected value to variable in the c# page?
I tried this :
Gender = Request.Form["Gender"].ToString();
But it didn't work...
See Question&Answers more detail:os