I need to access the previous page URL but because I am using a MasterPage, I am having difficulty achieving this.
Request.UrlReferrer
This only returns the URL of the current page.
I need to access the previous page URL but because I am using a MasterPage, I am having difficulty achieving this.
Request.UrlReferrer
This only returns the URL of the current page.
You can read a post here:
EDIT
If you are trying to get the last url without any postback, then you will not be able to do this, because HTTP is an stateless protocol.