This has been used a lot on those “sign up” forms. User has to select a check box indicating “I read and agree to the license agreement”, or something like that, before he/she can submit the form. Of course, with ASP.NET, you can let user submit the form and then check the state of the check box in the Button.Click event handler to prompt the user if the check bos is not checked. But my question is “why do you even give them the ability to click the button if they don’t check the box?”
How to use it?
In the Page_Load event handler, add this line of code:
Me.CheckBox1.Attributes.Add("onclick", "changeButtonState('" & Me.CheckBox1.ClientID.ToString() & _ "', '" & Me.Button1.ClientID.ToString() & "')")
Here are soem screen shots: