Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Readonly Property to All Controls

Readonly Property to All Controls

Scheduled Pinned Locked Moved ASP.NET
tutorial
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Johndas
    wrote on last edited by
    #1

    I need to set all control t0 "Readonly" mode Except the Label in Page. The structure of the control is Panel-->div-->Table-->TableRow-->TableCell-->Controls Here Controls are 1)RadioButtonList(10) 2)DropDownList(10) 3)Textbox(15) 4)Checkbox(5). total i have 40 controls... Please suggest me how to set the Readonly Property Generic for all controls. Thanks in Advance.

    JohnDas

    D D 2 Replies Last reply
    0
    • J Johndas

      I need to set all control t0 "Readonly" mode Except the Label in Page. The structure of the control is Panel-->div-->Table-->TableRow-->TableCell-->Controls Here Controls are 1)RadioButtonList(10) 2)DropDownList(10) 3)Textbox(15) 4)Checkbox(5). total i have 40 controls... Please suggest me how to set the Readonly Property Generic for all controls. Thanks in Advance.

      JohnDas

      D Offline
      D Offline
      Dinesh Mani
      wrote on last edited by
      #2

      Did you see the responses to your previous post on the same topic? Need to Set Readonly Property to ChildControls[^]

      1 Reply Last reply
      0
      • J Johndas

        I need to set all control t0 "Readonly" mode Except the Label in Page. The structure of the control is Panel-->div-->Table-->TableRow-->TableCell-->Controls Here Controls are 1)RadioButtonList(10) 2)DropDownList(10) 3)Textbox(15) 4)Checkbox(5). total i have 40 controls... Please suggest me how to set the Readonly Property Generic for all controls. Thanks in Advance.

        JohnDas

        D Offline
        D Offline
        dan sh
        wrote on last edited by
        #3

        You will need to loop through all the cells and then set there property. You can also place a transparent div over the panel so that controls beneath will be visible but not accessible (something like what happens in case of pop up).

        50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups