ASP.NET Get previous page, using MasterPage
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:
- Using PreviousPage with Master Pages (c#).
- Using PreviousPage with Master Pages (VB)
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.
精彩评论