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

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

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -