=?Utf-8?B?VG9kZA==?= wrote on 11 aug 2006 in
microsoft.public.inetserver.asp.general:
Hello...I'm trying to include querystring variables in a #include but
it's not working
this works:
<!--#include file="calendar/calendar.asp-->
this does not:
<!--#include
file="calendar/calendar.asp?eventtype=1&curmonth=8&curyear=2006"-->
The second would have no sense, since the <!--#include only inserts the
litteral content of the file, whatever it's extension[!!!], in the calling
file, and does not execute by itself.
This litteral content can be asp code or any other and is,
if it is asp code only executed as part of the "include calling" page.
Why do we often stress include called pages should have a .asp extension?
Because with another extension, say: .txt, .inc, .html, if the page were
accessable from the internet, it's content could be read by anyone.
So request.querystring("eventtype") will only return what is in the main
..asp page, even if this [part of code is in the included file.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)