How to Generate controls in web page ASP.NET 2.0?
-
Dear Friends, I want to generate controls Textbox, Checkbox, Label etc... programaticaly.. pls help me Dear Friends.....
Haridas.R harisofttech@gmail.com harisofttech@hotmail.com (online) harizeenet@yahoo.co.in(online) "Achievement is not a destination, its a journey "
-
Dear Friends, I want to generate controls Textbox, Checkbox, Label etc... programaticaly.. pls help me Dear Friends.....
Haridas.R harisofttech@gmail.com harisofttech@hotmail.com (online) harizeenet@yahoo.co.in(online) "Achievement is not a destination, its a journey "
do one thing use placeholder control where you want to display. create conrols ex: TextBox txtName = new TextBox(); txtName.Name = "txtName"; Add to the placeholder conrtol. placeholder1.Conrols.Add(txtName); whenever u dont want remove or Hide //Removing placeholder1.Conrols.Remove(txtName);
regards GV Ramana
-
Dear Friends, I want to generate controls Textbox, Checkbox, Label etc... programaticaly.. pls help me Dear Friends.....
Haridas.R harisofttech@gmail.com harisofttech@hotmail.com (online) harizeenet@yahoo.co.in(online) "Achievement is not a destination, its a journey "
Generating controls is possible but mainting the state is tricky. If you can't use a dataRepeater (even with your own custom XML or dataset) or gridview you may have to.
TextBox txt = new TextBox(); txt.Text = "Dynamically added to Page"; this.Controls.Add(txt);
You will find that the value in the control will disappear on each postback. Please refer to this link for more information about the page lifecycle.how vital enterprise application are for proactive organizations leveraging collective synergy to think outside the box and formulate their key objectives into a win-win game plan with a quality-driven approach that focuses on empowering key players to drive-up their core competencies and increase expectations with an all-around initiative to drive up the bottom-line. But of course, that's all a "high level" overview of things --thedailywtf 3/21/06
-
Generating controls is possible but mainting the state is tricky. If you can't use a dataRepeater (even with your own custom XML or dataset) or gridview you may have to.
TextBox txt = new TextBox(); txt.Text = "Dynamically added to Page"; this.Controls.Add(txt);
You will find that the value in the control will disappear on each postback. Please refer to this link for more information about the page lifecycle.how vital enterprise application are for proactive organizations leveraging collective synergy to think outside the box and formulate their key objectives into a win-win game plan with a quality-driven approach that focuses on empowering key players to drive-up their core competencies and increase expectations with an all-around initiative to drive up the bottom-line. But of course, that's all a "high level" overview of things --thedailywtf 3/21/06
Thanks for the information, How we can manage this State.. pls inform me
Haridas.R harisofttech@gmail.com harisofttech@hotmail.com (online) harizeenet@yahoo.co.in(online) "Achievement is not a destination, its a journey "
-
do one thing use placeholder control where you want to display. create conrols ex: TextBox txtName = new TextBox(); txtName.Name = "txtName"; Add to the placeholder conrtol. placeholder1.Conrols.Add(txtName); whenever u dont want remove or Hide //Removing placeholder1.Conrols.Remove(txtName);
regards GV Ramana
Thanks for the infromation...
Haridas.R harisofttech@gmail.com harisofttech@hotmail.com (online) harizeenet@yahoo.co.in(online) "Achievement is not a destination, its a journey "