Link to home
Start Free TrialLog in
Avatar of dale4brumbaugh
dale4brumbaugh

asked on

include file variables

is there a way to use a variable in an include file statement

example: url = ...default.aspx?location=admin.aspx"
<!--#include file="inc_header.aspx"-->(menu included here)
the next include controls content.  Page is always default.aspx
<!--#include file="VARIABLE GOES HERE"-->

<!--#include file="inc_footer.aspx"-->
Avatar of vs1784
vs1784

You can not include a variable in include file name.

But other way to do this is use Server.Execute

Server.Execute the file name you want and Respose.Write the output.

Hope this helps,

Thanks
Avatar of dale4brumbaugh

ASKER

could you show an example of this
ASKER CERTIFIED SOLUTION
Avatar of vs1784
vs1784

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial