I think you'd have to use response.redire ct (not server.redirect ). The
behavior you describe is expected by design, I'd say. default.asp is still
the page that is doing the work, kinda like if you had a default.asp that
INCLUDED page1.asp, you wouldn't expect there to be any reference in server
variables to that, would you?
Ray at work
"wildfire0n e" <an*******@disc ussions.microso ft.com> wrote in message
news:C3******** *************** ***********@mic rosoft.com...
I'm trying to add logging to my web application, but I found a strange
problem. Whenever I execute a Server.Redirect (Page1.asp) I can use the
request.ServerV ariables("SCRIP T_NAME") to get the current page name.
However, if I use Server.Transfer (Page1.asp), the value of the server
variable equals the refering page (In this case default.asp). How do I get
the value of the working page regardless of the transfer method.