我怎么确定用户来自于asp.net? [英] how do I determine where the user came from in asp.net?
本文介绍了我怎么确定用户来自于asp.net?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我如何能够确定用户来自当他们降落在我的网页。
How can I determine where a user came from when they land on my webpage.
- 难道他们来自谷歌的链接?
- 难道他们用户的收藏夹链接?
- 他们是否在URL中键入?
推荐答案
如果用户通过超链接浏览到您的网站,下面将提供以下信息:
If the user browsed to your site via a hyperlink, the following will provide this information:
Request.ServerVariables["HTTP_REFERER"]
虽然注意到在它上面是可能的浏览器阻止值(空值)。
Although note on the above it is possible for browsers to block the value (empty value).
您也将不能够检测用户是否专门用一个喜爱,输入了链接等是什么的客户端或服务器端code中的范围之外,这些都是浏览器动作可以检测,一旦用户土地在您的网站。
You also won't be able to detect if the user specifically used a favorite, typed in the link, etc. These are browser actions that are outside the scope of what client or serverside code can detect once the user lands on your site.
这篇关于我怎么确定用户来自于asp.net?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文