Linking of 2 to 3 WebForms
-
How to Link 2 to 3 WebForms? How to Call WebForm using DropDownList? How to Enable/Disable RadioButtonList in a certain senario: 1. You are in a current WebForm (Set As Start Page) default. 2. A certain RadioButtonList with (yes/no) choices will enable/disable a certain RadioButtonList in another WebForm that is part of the project. Thank you in advance to those willing to help!!! God Bless and More Power to this site!!! Chaoi!!! HappyKim :((
-
How to Link 2 to 3 WebForms? How to Call WebForm using DropDownList? How to Enable/Disable RadioButtonList in a certain senario: 1. You are in a current WebForm (Set As Start Page) default. 2. A certain RadioButtonList with (yes/no) choices will enable/disable a certain RadioButtonList in another WebForm that is part of the project. Thank you in advance to those willing to help!!! God Bless and More Power to this site!!! Chaoi!!! HappyKim :((
hi, Ur Q : How to Call WebForm using DropDownList? Ans : If I have understood your query... then the answer is you need to handle "SelectedIndexChanged" event of the DropDownList. From the "sender" parameter you can get the selected Item. Based on the item selected you can redirect the page to a different web form using "Response.Redirect()" method. ur Q : How to Enable/Disable RadioButtonList in a certain senario: 1. You are in a current WebForm (Set As Start Page) default. 2. A certain RadioButtonList with (yes/no) choices will enable/disable a certain RadioButtonList in another WebForm that is part of the project. Ans : Well, this Q is bit unclear... r u planning to show the second page on the change of the radio button or r u planning to first select the radio button and then click a button say "Next" button to go to the next page??... Anyways... let me give you the hint of handling the senario... If you are planning to handle the Radio button click event... then you need to handle "SelectedIndexChanged" of RadioButtonList. On click you need to identify which radio button is clicked and either you append the value to the querystring or store it in a Session variable. And then redirect to the next page using "Response.Redirect()" method. In the Page_Load of the next page extract the value from querystring or Session variable and then with a simple if or switch enable or disable whatever control you want to using itz "Enabled" property... eg : RadioButton1.Enabled = false; Hope this solves your problem... regards, Aryadip. Cheers !! and have a Funky day !!
-
hi, Ur Q : How to Call WebForm using DropDownList? Ans : If I have understood your query... then the answer is you need to handle "SelectedIndexChanged" event of the DropDownList. From the "sender" parameter you can get the selected Item. Based on the item selected you can redirect the page to a different web form using "Response.Redirect()" method. ur Q : How to Enable/Disable RadioButtonList in a certain senario: 1. You are in a current WebForm (Set As Start Page) default. 2. A certain RadioButtonList with (yes/no) choices will enable/disable a certain RadioButtonList in another WebForm that is part of the project. Ans : Well, this Q is bit unclear... r u planning to show the second page on the change of the radio button or r u planning to first select the radio button and then click a button say "Next" button to go to the next page??... Anyways... let me give you the hint of handling the senario... If you are planning to handle the Radio button click event... then you need to handle "SelectedIndexChanged" of RadioButtonList. On click you need to identify which radio button is clicked and either you append the value to the querystring or store it in a Session variable. And then redirect to the next page using "Response.Redirect()" method. In the Page_Load of the next page extract the value from querystring or Session variable and then with a simple if or switch enable or disable whatever control you want to using itz "Enabled" property... eg : RadioButton1.Enabled = false; Hope this solves your problem... regards, Aryadip. Cheers !! and have a Funky day !!
Good Day!! Thank you for the time and sincere concern to answer my question. But as a beginner and with a specific method of understanding a specific new idea "I am a learner that show me and I will understand it far more better." If it is just ok with you, could I ask for an example? I coding perhaps. :-D Please give me example: 1.How to Call WebForm using DropDownList. 2.How to Enable/Disable RadioButtonList in a certain senario. (More Details) 2.1.You are in a current WebForm (Set As Start Page) default 2.2.A certain RadioButtonList with (yes/no) choices will enable/disable a certain RadioButtonList in another WebForm that is part of the project. 2.3.Select the RadioButtonList First then click the DropDownList to go to the next page. 2.4.And when the 2nd WebForm is been Loaded some RadioButtonList is enable, some Disable. The Enable RadioButtonList is been enable because on the 1st WebForm RadioButtonList enable it. Hope I link the connection between the First Question to the Second Question. Thank you very much and God Bless to your Career!!! ;)