开发者

Checking the parent page address in child page using .NET

开发者 https://www.devze.com 2022-12-17 14:36 出处:网络
I am using C# language. I am facing one problem, please see the details below: I h开发者_开发知识库ave a parent page with address (http://www.espireinfo.com/coursefinder/findaprice.aspx?SchoolCode=

I am using C# language.

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

I h开发者_开发知识库ave 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!


See HttpWebRequest.Referer property.

0

精彩评论

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

关注公众号