asp.net - POST Checkbox value in HTML -


i want post checkbox values server using html. code retrieves nothing. please help.

<form action="default2.aspx" method="post" > <input type="checkbox" name="attempt" value="101"> i'st attempt<br> <input type="checkbox" name="attempt" value="102" checked> 2nd attempt<br> <input type="submit" value="submit"> </form> 

they need id's can referred , if web forms website need have attribute runat="server" both of them otherwise won't able access them.


Comments

Popular posts from this blog

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

ruby on rails - Authlogic - how to make a registration and don't log in the new account? -