views:

334

answers:

1

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.

A: 

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.

eKek0
burntsugar