Kings
Kings

Reputation: 1591

If a page 'A' is opened, find out from which source page page 'A' has been called?

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

Answers (1)

Felipe Ardila
Felipe Ardila

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

Related Questions