问题描述
大家好,
不知道这是否是一个愚蠢的问题...:P
我正在尝试为我的网站写一个在线访客"计数器.该代码工作100%.我的问题是这样的:
访客从各种不同的进入页面(都是纯HTML)访问我的网站.访问html页面而不是aspx页面时,global.asax文件是否可以运行并增加我的计数器?
为了进一步说明,global.asax页在创建用户会话时更新应用程序变量([usersOnline] + 1),并在会话结束时更新-1.
谢谢!
Hi everybody,
Don''t know if this is a silly question... :P
I am trying to write a "visitors online" counter for my website. The code is working 100%. My question now is this:
Visitors are accessing my website from various different entry pages, which are all plain HTML. Will the global.asax file run and increment my counter when you access html pages, and not aspx pages?
Just for more clarification, the global.asax page updates an application variable ([usersOnline] + 1) when a user session is created, and -1 when the session ends.
Thank you!
这篇关于Global.asax和HTML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!