Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Server.Execute equiv in ASP2

Status
Not open for further replies.

CapeMan

Programmer
Feb 14, 2001
9
GB
Hi gang

Could anyone tell me how I can substitute the Server.Execute command (only in ASP3) in ASP2?

ASP code ...
...
...
Server.Execute("xsql/Generic.XSQL")
...
...
ASP code ...

Thanks, CapeMan
 
Does a file include solve your problem?
Code:
<%'asp code%>
<!-- #include virtual=&quot;/xsql/Generic.XSQL&quot; -->
<%'asp code%>

/gny
 
you should do a file include, but in the include file make your code into a function. then, from the including page, call the function.

hope this helps
leo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top