How to post data from a checkbox control in ASP.NET?

ValLin 88

New member
I'm using a DetailsView control and one of the columns is a Status column. In Classic ASP, it's easy to determine if the checkbox is True or False because there is a "Value" attribute in the Request.Form. But in ASP.NET there is no Value. So how do you tell if the checkbox is checked? If checked, I want to pass a value of 1. If not checked, I want to pass a value of 0.

If you can give me examples, an idea, or point me to a site that explains how to overcome this ASP.NET limitation, please let me know.

Thanks,
 
Back
Top