开发者

ASP.NET Get previous page, using MasterPage

开发者 https://www.devze.com 2022-12-23 18:48 出处:网络
I need to access the previous page URL but because I am using a MasterPage, I am having difficulty achieving this.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消