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. rediobutton

rediobutton

Scheduled Pinned Locked Moved ASP.NET
question
4 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.
  • P Offline
    P Offline
    ptvce
    wrote on last edited by
    #1

    i have a rediobutton and a dropdownlist and when the form loaded rediobutton.checked = false and dropdownlist be disable(means dropdownlist.enable = false) and i want after load when i select rediobutton (means rediobutton.checked = true) dropdownlist be enable how can i do this work

    C B 2 Replies Last reply
    0
    • P ptvce

      i have a rediobutton and a dropdownlist and when the form loaded rediobutton.checked = false and dropdownlist be disable(means dropdownlist.enable = false) and i want after load when i select rediobutton (means rediobutton.checked = true) dropdownlist be enable how can i do this work

      C Offline
      C Offline
      chakkara2003
      wrote on last edited by
      #2

      just set the autopostback property of radio button true, then on RadioButton1_CheckedChanged event write dropdown.enabled=true; coolsweety -- modified at 9:05 Thursday 20th April, 2006

      1 Reply Last reply
      0
      • P ptvce

        i have a rediobutton and a dropdownlist and when the form loaded rediobutton.checked = false and dropdownlist be disable(means dropdownlist.enable = false) and i want after load when i select rediobutton (means rediobutton.checked = true) dropdownlist be enable how can i do this work

        B Offline
        B Offline
        benqazou
        wrote on last edited by
        #3

        Hey, You need to set the radionbutton AutoPostback property to 'true'.. Then by double clicking the radiobutton, VS creates a method radiobutton_checkedchanger(..) where you write the code to enable the dropdownlist.. I'd rather suggest you use a checkbox instead of a radiobutton. Good luck.

        P 1 Reply Last reply
        0
        • B benqazou

          Hey, You need to set the radionbutton AutoPostback property to 'true'.. Then by double clicking the radiobutton, VS creates a method radiobutton_checkedchanger(..) where you write the code to enable the dropdownlist.. I'd rather suggest you use a checkbox instead of a radiobutton. Good luck.

          P Offline
          P Offline
          ptvce
          wrote on last edited by
          #4

          thanks for your help thats right i forgeted the atuopostbak. that be work now thank:rose:

          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