2010/12/04

Tips: Prevent CheckBox from being changed by user

The easiest way to prevent your CheckBox from being changed by users is adding this to your CheckBox's html code:
OnClick="return false;"
For example:
<asp:CheckBox ID="CheckBox1" runat="server" Text="Want a salary increase?" Checked="False"
 OnClick="return false;" />

No comments:

Post a Comment