|
wizard_oz -> RE: Include question (11/9/2006 5:11:15)
|
Ok, the first page is menu page with 2 item and every menu add an ASP file wuch include some commands for example this is my first code and it's working fine
<%
choose=Request.QueryString("choose")
Application("LogoSport")="SPORT"
Application("LogoFloor")="FLOOR"
id=1
%>
<body>
<table width="765" border="0" align="right" cellpadding="0" cellspacing="0">
<tr>
<td colspan="2">
<%
if choose=1 then
%>
<!-- #include file="../Template/FloorTemplate.asp"-->
<%
else
%>
<!-- #include file="../Template/SportTemplate.asp"-->
<%
end if
%>
</td> </tr>
<tr><td width="645"> </td>
<td width="120" height="700" bgcolor="#666666" valign="top" align="right">
<font face='arial' size=6><p align=center>
<%
if choose=1 then
Response.Write Application("LogoFloor")
else
Response.Write Application("LogoSport")
end if
%>
</p></font>
</td>
</tr>
</table>
the lines: <!-- #include file="../Template/FloorTemplate.asp"--> <!-- #include file="../Template/SportTemplate.asp"--> are the same the only diffrents between them is the query, if I could make a coomand line like that: <!-- #include file="../Template/FloorTemplate.asp?id=1"--> it will solve my problem becuase now I need to add more items to the menu file which means I will have 4 item in the menu file Thanks,Elen
|
|
|
|