Reputation: 1591
I am currently in "pageA.aspx". Using top.location.href
or Response.Redirect()
, I've come to "pageB.aspx". How to find out that which page has called "pageB.aspx". Is it "pageA.apsx" or any other page.
I aware of using URL Query-String. But I need to use any other option.
Upvotes: 0
Views: 135
Reputation: 3004
You can use Request.UrlReferrer
.
Gets information about the URL of the client's previous request that linked to the current URL.
Upvotes: 2