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