N
ningjun.wang
I need to include to static html files in my asp.net page. The order of
include depend on query string. Here is the pseudo code
mypage.aspx:
<%
string mode = Request["mode"];
if (mode == "A") {
include("file1.html"); // How to do this?
include("filee2.html");
} else {
include("file2.html");
include("filee1.html");
}
%>
How can I do this? I heard some suggestion of using User controls and
PlaceHolder controls and do this in the code behind file. I just feel
that is overkill. Is there any simple way to do this in the aspx file
without using the code behind file?
I am new to ASP.NET, so please give me the code snippet with correct
syntax instead of pseudo code.
Thanks
include depend on query string. Here is the pseudo code
mypage.aspx:
<%
string mode = Request["mode"];
if (mode == "A") {
include("file1.html"); // How to do this?
include("filee2.html");
} else {
include("file2.html");
include("filee1.html");
}
%>
How can I do this? I heard some suggestion of using User controls and
PlaceHolder controls and do this in the code behind file. I just feel
that is overkill. Is there any simple way to do this in the aspx file
without using the code behind file?
I am new to ASP.NET, so please give me the code snippet with correct
syntax instead of pseudo code.
Thanks