开发者

Checking the parent page address in child page using .NET

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜