By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,353 Members | 1,529 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,353 IT Pros & Developers. It's quick & easy.

Redirecting back to original page…

P: n/a
Greetings,

I need to redirect my user back to where they came from, but I cant use history.back cause for some particular reason. What is the function in asp.net to allow me to archive this?

Nov 18 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
On Sun, 11 Jul 2004 20:50:01 -0700, Asha <As**@discussions.microsoft.com>
wrote:
Greetings,

I need to redirect my user back to where they came from, but I cant use
history.back cause for some particular reason. What is the function in
asp.net to allow me to archive this?


Is it your site they are 'coming from' (1 of your pages)? If so, just
pass the previous page's URL as a query string arg to the next page....

Otherwise check out the 'Where did they come from?' section in this
article:

http://www.15seconds.com/issue/021119.htm

and the example later on:

HttpContext.Current.Request.UrlReferrer

--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET
Nov 18 '05 #2

P: n/a
You can get original page url using request.urlreferrer. Then you can
redirect to that page.

--
Saravana
Microsoft MVP - ASP.NET
www.extremeexperts.com

"Asha" <As**@discussions.microsoft.com> wrote in message
news:5C**********************************@microsof t.com...
Greetings,

I need to redirect my user back to where they came from, but I cant use history.back cause for some particular reason. What is the function in
asp.net to allow me to archive this?

Nov 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.