Hi,
I would appreciate it very much if someone could help me with this.
I'm having problems figuring out how to us ascx files dynamically.
Like in a IF statement
IF(showID)
{
<UserControl1:form1 runat="server"/>
}
else
<UserControl1:form2 runat="server"/>
}
signupForm1 and signupForm2 are registered like this :
<%@ Register TagPrefix="UserControl1" TagName="form1" Src="includes/signupForm1.ascx" %> ,
<%@ Register TagPrefix="UserControl1" TagName="form2" Src="includes/signupForm2.ascx" %> .
What I want to know is, how to use them in an IF statement.
Or if I could change it's SRC property dynamically.
Thanks
I would appreciate it very much if someone could help me with this.
I'm having problems figuring out how to us ascx files dynamically.
Like in a IF statement
IF(showID)
{
<UserControl1:form1 runat="server"/>
}
else
<UserControl1:form2 runat="server"/>
}
signupForm1 and signupForm2 are registered like this :
<%@ Register TagPrefix="UserControl1" TagName="form1" Src="includes/signupForm1.ascx" %> ,
<%@ Register TagPrefix="UserControl1" TagName="form2" Src="includes/signupForm2.ascx" %> .
What I want to know is, how to use them in an IF statement.
Or if I could change it's SRC property dynamically.
Thanks