tags:

views:

36

answers:

1

Hi,

I am using C# language.

I am facing one problem, please see the details below:

I have a parent page with address (http://www.espireinfo.com/coursefinder/findaprice.aspx?SchoolCode=LOL&ProgCode=ENGBUS&School=London%20Leicester%20square&Programme=English%20for%20Business)

which have a button, which on click put some values in session and after putting some value in session it redirect page to this page (http://www.espireinfo.com/coursefinder/BookNow.aspx), now in this page I want to check

if requested parent page == "findaprice.aspx" then
{
    do something!
}

Please suggest! how to should achieve above code logic using C# language.

Thanks!

+2  A: 

See HttpWebRequest.Referer property.

Anton Gogolev
Thanks can I have example code!
MKS