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. Controls in disabled state

Controls in disabled state

Scheduled Pinned Locked Moved ASP.NET
help
4 Posts 2 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.
  • D Offline
    D Offline
    dotnetmember
    wrote on last edited by
    #1

    In my application,i have many web pages. When certain conditions are met, i want to disable all the controls in the web page. The problem is that when contorls are disabled, it is grayed out and users find difficulty to read the data in controls (textbox, radiobuttonlist, checkboxlist,drop down). Is there any solution to allow controls look as they are enabled even in disabled state. Any help appreciated..............

    S 1 Reply Last reply
    0
    • D dotnetmember

      In my application,i have many web pages. When certain conditions are met, i want to disable all the controls in the web page. The problem is that when contorls are disabled, it is grayed out and users find difficulty to read the data in controls (textbox, radiobuttonlist, checkboxlist,drop down). Is there any solution to allow controls look as they are enabled even in disabled state. Any help appreciated..............

      S Offline
      S Offline
      Sandesh M Patil
      wrote on last edited by
      #2

      Make Control Readonly property =true on page load. Ex txtAddress.ReadOnly=true; on page_load Hope this may help u........... :)

      D 1 Reply Last reply
      0
      • S Sandesh M Patil

        Make Control Readonly property =true on page load. Ex txtAddress.ReadOnly=true; on page_load Hope this may help u........... :)

        D Offline
        D Offline
        dotnetmember
        wrote on last edited by
        #3

        Its ok with textbox but still problem exists with other controls...

        S 1 Reply Last reply
        0
        • D dotnetmember

          Its ok with textbox but still problem exists with other controls...

          S Offline
          S Offline
          Sandesh M Patil
          wrote on last edited by
          #4

          See below link you can make it using a Javascript Link :)

          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