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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Server.Execute maintain state

Status
Not open for further replies.

simonchristieis

Programmer
Jan 10, 2002
1,144
GB

I am using the server.execute to build an admin system.

The problem I am having is that I cant access the vars. in the parent page, nor can I pass the vars to the executed page as a url parameter.

any ideas anyone?

Case "A"
Server.Execute "add.asp?sLetter="& sLetter
Case "B"
tURL = "add.asp?sLetter="& sLetter
Server.Execute tURL

both return errors

thanks in advance

simon

 
Hi Simon,

It is not possible to pass parameters with the server.execute command. As far as I know you have two options.

First, you could make your sLetter variable a session variable, making it available on the executing page.

Second, you can pass variables using the response.redirect command, process code, and then do another response.redirect back to the first page.

Hope that helps!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top