making checkbox/check box READONLY

by pietman 12. May 2009 16:41

The easiest work around I guess is to do a javascript return false on trying to change the value, thus:

onclick="return false;"

Here are the ASP.Net and HTML versions:

<asp:CheckBox ID="Whatever" runat="server" onclick="return false;" />

<input type="checkbox" onclick="return false;" />

Tags:

c# | CSS | LINQ

Add c0mment




  Country flag
biuquote
  • Comment
  • Preview
Loading


About ...

pietman celliersPietman Celliers
Bitlink  Ltd
bitlinkit.com