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. Multiple check Boxes Events and Text Boxes Enabling

Multiple check Boxes Events and Text Boxes Enabling

Scheduled Pinned Locked Moved ASP.NET
helpcsharpasp-nettutorialquestion
4 Posts 4 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.
  • U Offline
    U Offline
    User 3639534
    wrote on last edited by
    #1

    Hello I have 3 Check Boxes on my ASP.NET Page. and i Have 3 Text Boxes for these Check Boxes. Task.. i want to activate the Text Boxes when each respective Check Box is click. I am able to do it.. but the issue is.. when i Check the second Check Box the Pervious Text Box gets disabled, even though the previous CheckBox is Selected. Same is happening for the third one. When the Third CheckBox i select both the previous TextBoxes gets disabled eventhough the checkboxes are checked. How i can make them work togethor. Like if the user checks the first checkbox write some thing on the text box and then checks the second check box writes some thing on its text box, at this point checkBox (one) TextBox should stay enabled. Thanks Help will be appreciated. sample code .. same code is for all the check boxes.. i think since the autopost back is true when i check the second checkbox page reloads and textbox1 (for CheckBox1) gets disabled.. how to stop it ? I am using AutoPost Back true CheckBox Checked Event (...) { if(CheckBox1.Checked) { textbox1.enabled=true; }

    M G 2 Replies Last reply
    0
    • U User 3639534

      Hello I have 3 Check Boxes on my ASP.NET Page. and i Have 3 Text Boxes for these Check Boxes. Task.. i want to activate the Text Boxes when each respective Check Box is click. I am able to do it.. but the issue is.. when i Check the second Check Box the Pervious Text Box gets disabled, even though the previous CheckBox is Selected. Same is happening for the third one. When the Third CheckBox i select both the previous TextBoxes gets disabled eventhough the checkboxes are checked. How i can make them work togethor. Like if the user checks the first checkbox write some thing on the text box and then checks the second check box writes some thing on its text box, at this point checkBox (one) TextBox should stay enabled. Thanks Help will be appreciated. sample code .. same code is for all the check boxes.. i think since the autopost back is true when i check the second checkbox page reloads and textbox1 (for CheckBox1) gets disabled.. how to stop it ? I am using AutoPost Back true CheckBox Checked Event (...) { if(CheckBox1.Checked) { textbox1.enabled=true; }

      M Offline
      M Offline
      meeram395
      wrote on last edited by
      #2

      Use javascript for checkbox checking and fire that js for each event of the click event of particular checkbox. There will be lot of code available in google for checking the checkbox click.

      Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.

      J 1 Reply Last reply
      0
      • M meeram395

        Use javascript for checkbox checking and fire that js for each event of the click event of particular checkbox. There will be lot of code available in google for checking the checkbox click.

        Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.

        J Offline
        J Offline
        Jagz W
        wrote on last edited by
        #3

        use switch case and handle the checkbox checked event

        One person's data is another person's program. --J.Walia

        1 Reply Last reply
        0
        • U User 3639534

          Hello I have 3 Check Boxes on my ASP.NET Page. and i Have 3 Text Boxes for these Check Boxes. Task.. i want to activate the Text Boxes when each respective Check Box is click. I am able to do it.. but the issue is.. when i Check the second Check Box the Pervious Text Box gets disabled, even though the previous CheckBox is Selected. Same is happening for the third one. When the Third CheckBox i select both the previous TextBoxes gets disabled eventhough the checkboxes are checked. How i can make them work togethor. Like if the user checks the first checkbox write some thing on the text box and then checks the second check box writes some thing on its text box, at this point checkBox (one) TextBox should stay enabled. Thanks Help will be appreciated. sample code .. same code is for all the check boxes.. i think since the autopost back is true when i check the second checkbox page reloads and textbox1 (for CheckBox1) gets disabled.. how to stop it ? I am using AutoPost Back true CheckBox Checked Event (...) { if(CheckBox1.Checked) { textbox1.enabled=true; }

          G Offline
          G Offline
          gavindon
          wrote on last edited by
          #4

          is it a checkbox list? or three seperate checkboxes?

          Programming is a race between programmers trying to build bigger and better idiot proof programs, and the universe trying to build bigger and better idiots, so far... the universe is winning.

          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