Making a CheckBox Read-Only

Discussion in 'ASP .Net Web Controls' started by Andrew Chalk, Jan 6, 2006.

  1. Andrew Chalk

    Andrew Chalk Guest

    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, Jan 6, 2006
    #1
    1. Advertising

  2. Yes, setting Enabled to false should do the trick.

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


    "Andrew Chalk" <> wrote in message
    news:%...
    > 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], Jan 6, 2006
    #2
    1. Advertising

  3. Andrew Chalk

    Andrew Chalk Guest

    Thanks!
    "Steve C. Orr [MVP, MCSD]" <> wrote in message
    news:%...
    > Yes, setting Enabled to false should do the trick.
    >
    > --
    > I hope this helps,
    > Steve C. Orr, MCSD, MVP
    > http://SteveOrr.net
    >
    >
    > "Andrew Chalk" <> wrote in message
    > news:%...
    >> 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, Jan 7, 2006
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. keithb
    Replies:
    2
    Views:
    8,004
    keithb
    Jun 7, 2006
  2. Johannes Zellner
    Replies:
    3
    Views:
    457
    Fredrik Lundh
    Jan 18, 2006
  3. Tim Chase
    Replies:
    2
    Views:
    328
    James Stroud
    Mar 15, 2006
  4. Making a GridView Cell read-only

    , Nov 27, 2006, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    1,061
    Michael Tkachev
    Dec 19, 2006
  5. Michael Champagne
    Replies:
    4
    Views:
    332
    Matt Kruse
    Apr 20, 2004
Loading...

Share This Page