load different ascx files

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

is it possible to include a ascx file in another ascx file in the codebehind?
for example something like <asp:panel pnl src="test.ascx"></asp:panel

i want to control in the codebehind which ascx file is loaded but i don't want to use frames
 
Are you saying you want to dynamically add a control at runtime? For example
load test1.ascx or test2.ascx into container.ascx based on some variable?
 
Back
Top