Dynamically Change User Control in ASP.Net
I’m trying to create a web page that will display an appropriate user control based on the selected value of a drop down list.
I’m trying to create a web page that will display an appropriate user control based on the selected value of a drop down list.
I want to create control that will allow user to design his own website structure. I imagined that inside UpdatePanel is control(s) with TextBox ( for page name) and Button ‘add below’. It would looks like:
I am pretty sure back in the days of ASP.NET 1.0/1.1, controls created during runtime needs to be added before Page_Load event of the Page Lifecycle (i.e. inside Page_Init).
I am trying to dynamically create controls and give them properties during run time.
As per the title, I have created a custom control.
I want to create an amount of controls dynamically based on a number the user enters into a textbox. This part I have working fine, but I also need the dynamically created textboxes to have event handlers of their own, so the user can enter a number into them, and have more controls created.