Dear all,
I searched at a lot of places for my very easy problem, but couldn't find a suitable answer. The scenario I deal with is as easy as can be. I have 1 Default.aspx page, which includes a Web User Control (.ascx) file depening on the name of the user control in the database. Code in the Default.aspx page_load:
Type type = Type.GetType("type defined in database");
Control control = this.LoadControl(menu.Control);
maincontent.Controls.Add(control);
Then in my .ascx file I have:
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:Label ID="MenuLabel" Text="Menu" runat="server" /><asp:DropDownList ID="ddlMenu" runat="se ...
Go to the complete details ...