I would like to get in my custom webpart an url address of the site which I was opened just previously before I get to current site(that with my webpart)? How can I achieve this?
Asked
Active
Viewed 200 times
1 Answers
0
Plain ASP.NET Method of getting the Referrer will work for this.You can easily do this with the Request.UrlReferrer
-
Any example of using this property, please... It doesn't work if I paste it to my code. (I import System.Web namespace.) – truthseeker Feb 19 '10 at 17:31
-
HttpContext.Current.Request.UrlReferrer doesn't work. It redirects page always to itself. :( – truthseeker Feb 19 '10 at 23:30