B
brett
I need to include some webpages and am doing this in my index page:
<%@ Register TagPrefix="mysite" TagName="section1"
Src="/sub/section1.ascx" %>
<%@ Register TagPrefix="mysite" TagName="section2"
Src="/sub/section2.ascx" %>
<%@ Register TagPrefix="mysite" TagName="section3"
Src="/sub/section3.ascx" %>
On my main page, I'd like to include pages via URL. For example:
index.aspx?p=section1
index.aspx?p=section2
index.aspx?p=section3
I use this to bring in the selected page.
<p><mysite:%p%runat="server" /></p>
but how do I have it dynamically use the "p" variable? Of course the
above doesn't work.
Also, how do I set a default "p" value.
Thanks,
Brett
<%@ Register TagPrefix="mysite" TagName="section1"
Src="/sub/section1.ascx" %>
<%@ Register TagPrefix="mysite" TagName="section2"
Src="/sub/section2.ascx" %>
<%@ Register TagPrefix="mysite" TagName="section3"
Src="/sub/section3.ascx" %>
On my main page, I'd like to include pages via URL. For example:
index.aspx?p=section1
index.aspx?p=section2
index.aspx?p=section3
I use this to bring in the selected page.
<p><mysite:%p%runat="server" /></p>
but how do I have it dynamically use the "p" variable? Of course the
above doesn't work.
Also, how do I set a default "p" value.
Thanks,
Brett