I think you'd have to use response.redirect (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
"wildfire0ne" <an*******@discussions.microsoft.com> wrote in message
news:C3**********************************@microsof t.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.ServerVariables("SCRIPT_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.