Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

who called this page?

0 views
Skip to first unread message

James Cooke

unread,
Mar 12, 2003, 12:36:04 PM3/12/03
to
I want to redirect to the page that originally called this one.
how?

Thanks,
James


Kevin Spencer

unread,
Mar 12, 2003, 1:33:15 PM3/12/03
to
You would have to persist the URL of the calling page somewhere over the
lifetime of the current page, as it may PostBack to itself many times. How
would I do this? In my Page_Load Sub, I would do something like the
following:


If not Page.IsPostBack
ViewState("REFERER") = Request.ServerVariables("HTTP_REFERER")
End If

Then you can fetch ViewState("REFERER") at any time in the life of the page.

HTH,

Kevin Spencer
Microsoft FrontPage MVP
Internet Developer
http://www.takempis.com
Different Strangs fer Different Thangs.

"James Cooke" <jamescooke_...@yahoo.com> wrote in message
news:effRh3L6...@TK2MSFTNGP11.phx.gbl...

0 new messages