A
Adie
Hi, I wonder if anyone can tell me how to add user controls to a page
dynamically?
In context: I have a bunch of HTML tables which due to time
constraints can't be populated to a database, so I was planning on
cutting the HTML source and creating a user control from said source.
I will then populate the relevant database for the product with the
name of the user control, so if someone selects product "blah" the
query returns the name of the relevant control with other details.
How then might I add this code to the page, would I better off using
the old style <% -- inline code here -- %> for example
<uc1:<%=some_control_name%> id=" <%=some_control_name%>"
runat="server"> in the aspx web form or by using code-behind?
And would I have register each control that might be used on the page
too?
<%@ Register TagPrefix="uc1" TagName="cb4Way" Src="pecs/cb4Way.ascx"%>
<%@ Register TagPrefix="uc1" TagName="pecs/tubingNTTPec.ascx"
TIA
dynamically?
In context: I have a bunch of HTML tables which due to time
constraints can't be populated to a database, so I was planning on
cutting the HTML source and creating a user control from said source.
I will then populate the relevant database for the product with the
name of the user control, so if someone selects product "blah" the
query returns the name of the relevant control with other details.
How then might I add this code to the page, would I better off using
the old style <% -- inline code here -- %> for example
<uc1:<%=some_control_name%> id=" <%=some_control_name%>"
runat="server"> in the aspx web form or by using code-behind?
And would I have register each control that might be used on the page
too?
<%@ Register TagPrefix="uc1" TagName="cb4Way" Src="pecs/cb4Way.ascx"%>
<%@ Register TagPrefix="uc1" TagName="pecs/tubingNTTPec.ascx"
TIA