ok im reposting this question cause i got some off track answers last time. I have 3 aspx page开发者_如何学编程s - page1, login and page3. Now when i goto login page from page1, after i login and goto page3 i should be able to open a popup on that submit and the login should change to page3. but if i goto login page directly, the popup should not open and the login will goto page3 as normal design. how can i achieve this?
You just have to check Request.UrlReferrer. This will contain the Url for the page the user was on just before they came to this page. If the UrlReferrer is NOT page1, then do not show the popup.
精彩评论