Welcome to Auciou's Blog!

HomeAbout AuciouArchivesContactSite MapLinks

Include ASP files - Auciou
Include ASP files

Published by Auciou June 28, 2005, 19:07

Sometimes we needed to include another file when we were writing the ASP programs for the sites. That enabled your site's numerous files to include the same ASP file. The way is like this:

<!--#include file=***.asp-->

The file's path just need relative path. And you needn't transform it to physical path. But I found that I couldn't write like this:
<!--#include file=<%=ame%>.asp-->

So I need a brighter idea in order to include the files from Request.QueryString such as <!--#include file=<%=Request.QueryString("ame")%>.asp-->.

Do you have a brighter idea? Now, I try to write like this, it can run successfully:
<%if ame=1 then%><!--#include file=file/1.asp-->
<%if ame=2 then%><!--#include file=file/2.asp-->

Trackback: http://www.auciou.com/capable/trackback.jsp?heu00000044


1 Comment:

1   Xia 2005-07-22 10:09 posted:
Good!~~~~Very good.

Comments are closed.

Auciou: Web programmer and web designer

My Chinese Blog

Category:
Computer
Internet
Blog Research
Philosophy

Recent Comments:
» Is belief a secret?
» Compare ASP and PHP (1):
» This blog had resumed
» 2 excellent philosophy bo
» Happy birthday, Nicholas
» Shut down when insert the
» Insert the earphone that
» A very mellow Chinese son

Archives

May 2007
April 2007
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
All archives

This work is licensed under a Creative Commons License.

 Subscibe


Copyright © 2007-2008 auciou.com All rights reserved.
This Blog program is powered by Auciou.