I want to redirect to the page that originally called this one.
If not Page.IsPostBack
ViewState("REFERER") = Request.ServerVariables("HTTP_REFERER")
Then you can fetch ViewState("REFERER") at any time in the life of the page.
Microsoft FrontPage MVP
Different Strangs fer Different Thangs.
Quote:> I want to redirect to the page that originally called this one.
If I have four pages, and page A can Server.Transfer to page B or C, and
page B and C can both Server.Transfer to page D, how can page D find out
whether it was page B or C that used Server.Transfer to get there?
Is there a clean way of doing this? I.e., is there some property or
variable or method that would directly give this to me? I don't want to do
it by way of error handling code, query strings, or session state; these are
straight forward, but not preferable.