由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
DotNet版 - Help!
相关主题
Redirecting User to Login Page [fwd][转载] 如何知道CLIENT一端屏幕的大小?
Re: Redirecting User to Login Page [fwd问个webbrowser控件的问题
Summary: 2 个web form之间如何传参数?How to stop windows service in OnStart()
.NET Session State存储失败问题即解决方法请指点
问一个linq to sql编程问题 (转载)azure一问
[转载] 问一个javascript 和 .NET 的问题C#编程求助, 500伪币酬谢, 在线等
How to kill popup in Outlook add-ins?网页里面显示小网页用什么asp control呀?
ASP.NET -- help新人再问 sql/linq: No connection string name d 'db5Entities' could be found in the application config fi
相关话题的讨论汇总
话题: pageb话题: pagea话题: user话题: session话题: hyperlink
进入DotNet版参与讨论
1 (共1页)
a*********u
发帖数: 1463
1
I have 2 web pages, pageA and pageB.
There is a hyperlink in pageA to redirect user to pageB.
User must go to PageA and click on the link to pageB. If user visit pageB
directly, then a popup will display to warn user and redirect user back to
pageA.
My question is how to know if user open page by hyperlink or not?
The hints is to use session state and JavaScript.
But I still could not figure it out :( ...
Can someone help?
Thanks!!
a9
发帖数: 21638
2
最简单的:取Request.refer
比较麻烦的 在pageA里 加上Session["VisitedPageA"] = 1;
pageB里 if(Session["VisitedPageA"] != null && (int)Session["VisitedPageA"] =
= 1){
ffff
}
还有更麻烦点的,就是改link。比如
个随机,到b里去检查。 当然还是要用session的配合。以检查的确是从a来的,而不是
a->c->b

【在 a*********u 的大作中提到】

: I have 2 web pages, pageA and pageB.
: There is a hyperlink in pageA to redirect user to pageB.
: User must go to PageA and click on the link to pageB. If user visit pageB
: directly, then a popup will display to warn user and redirect user back to
: pageA.
: My question is how to know if user open page by hyperlink or not?
: The hints is to use session state and JavaScript.
: But I still could not figure it out :( ...
: Can someone help?
: Thanks!!

1 (共1页)
进入DotNet版参与讨论
相关主题
新人再问 sql/linq: No connection string name d 'db5Entities' could be found in the application config fi问一个linq to sql编程问题 (转载)
请问, ASP.NET 中, 2 个web form之间如何传参数?[转载] 问一个javascript 和 .NET 的问题
大家找找自己周围的.NET USER GROUP 吧How to kill popup in Outlook add-ins?
authenticationASP.NET -- help
Redirecting User to Login Page [fwd][转载] 如何知道CLIENT一端屏幕的大小?
Re: Redirecting User to Login Page [fwd问个webbrowser控件的问题
Summary: 2 个web form之间如何传参数?How to stop windows service in OnStart()
.NET Session State存储失败问题即解决方法请指点
相关话题的讨论汇总
话题: pageb话题: pagea话题: user话题: session话题: hyperlink