Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net Web Controls (http://www.velocityreviews.com/forums/f63-asp-net-web-controls.html)
-   -   Making a CheckBox Read-Only (http://www.velocityreviews.com/forums/t777571-making-a-checkbox-read-only.html)

Andrew Chalk 01-06-2006 08:52 PM

Making a CheckBox Read-Only
 
In ASP.NET v1.1, the checkbox does not have a "ReadOnly" property. How do I
prevent a click on it changing the visual clicked state? Set enabled to
false?

Many thanks.



Steve C. Orr [MVP, MCSD] 01-06-2006 11:55 PM

Re: Making a CheckBox Read-Only
 
Yes, setting Enabled to false should do the trick.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net


"Andrew Chalk" <achalk@magnacartasoftware.com> wrote in message
news:%23evJXMwEGHA.312@TK2MSFTNGP09.phx.gbl...
> In ASP.NET v1.1, the checkbox does not have a "ReadOnly" property. How do
> I prevent a click on it changing the visual clicked state? Set enabled to
> false?
>
> Many thanks.
>




Andrew Chalk 01-07-2006 04:16 PM

Re: Making a CheckBox Read-Only
 
Thanks!
"Steve C. Orr [MVP, MCSD]" <Steve@Orr.net> wrote in message
news:%231fn2yxEGHA.3576@TK2MSFTNGP10.phx.gbl...
> Yes, setting Enabled to false should do the trick.
>
> --
> I hope this helps,
> Steve C. Orr, MCSD, MVP
> http://SteveOrr.net
>
>
> "Andrew Chalk" <achalk@magnacartasoftware.com> wrote in message
> news:%23evJXMwEGHA.312@TK2MSFTNGP09.phx.gbl...
>> In ASP.NET v1.1, the checkbox does not have a "ReadOnly" property. How do
>> I prevent a click on it changing the visual clicked state? Set enabled to
>> false?
>>
>> Many thanks.
>>

>
>





All times are GMT. The time now is 04:55 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.