It is possible to pass a parameter through server.execute
?
Fx. I have in my site.asp
an IF-scenario where I need functions.asp?a=some
Why not to use #include
instead of server.execute
?
I looked for a difference and found that in this particular case, using #include
is the best solution:
https://en.wikibooks.org/wiki/Active_Server_Pages/Server-Side_Includes#What_it_Does
You need some variables defined in parent page to be used in child, so your solution could be:
dim id, a
id = 123
a = "something"
if b = "hi" then
else
response.write("No way dude")
end if
On functions.asp
if a = "something" and cint(id) > 100 then
response.write("Yes way dude")
else
response.write("No way dude")
end if
Advantages: