asp classic - ASP Server.Execute - Executed Page is not accessing variables from the former/first page -
i know server.execute(..) not accept query strings. msdn website says variables former website avaible executed page. not work me @ all. idea why?
simple example should work not:
<% dim strvar strvar = "this text" server.execute("page2.asp") %> page2.asp <% response.write( strvar ) %>
any idea why not work?
ps. i´m not using "< !--include .. -->" because have conditional outputs.
when using server.execute, variables page 1 not available on page 2, design example should not work.
here's snippet msdn page server.execute explains available page 1 on page 2.
the following collections , properties available executed asp page:
- application variables, if set in calling page.
- session properties, if set in calling page.
- server variables , properties, if set in calling page.
- request collections , properties, if set in calling page. includes form , querystring data passed calling page.
- response collections , properties. executed .asp file may modify http headers. however, .asp file, if executed .asp file attempts modify http headers after sends response client, generates error.
Comments
Post a Comment