views:

49

answers:

2

Hi,

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?

A: 

Plain ASP.NET Method of getting the Referrer will work for this.You can easily do this with the Request.UrlReferrer

Kusek
Any example of using this property, please... It doesn't work if I paste it to my code. (I import System.Web namespace.)
truthseeker
HttpContext.Current.Request.UrlReferrer doesn't work. It redirects page always to itself. :(
truthseeker
A: 

There was no good answer for my question so I'm closing the topic for now. Best Regards T.S.

truthseeker