温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:冬雷物语个人综合网站源码
当前文件:
FHWUUXMQKKG24/Global.asax.cs[1K,2009-6-12 11:42:31],打开代码结构图
FHWUUXMQKKG24/Global.asax.cs[1K,2009-6-12 11:42:31],打开代码结构图1using System; 2
using System.Collections; 3
using System.ComponentModel; 4
using System.Web; 5
using System.Web.SessionState; 6
7
namespace temp 8
{ 9
/// <summary> 10
/// Global 的摘要说明。 11
/// </summary> 12
public class Global : System.Web.HttpApplication 13
{ 14
/// <summary> 15
/// 必需的设计器变量。 16
/// </summary> 17
private System.ComponentModel.IContainer components = null; 18
19
public Global() 20
{ 21
InitializeComponent(); 22
} 23
24
protected void Application_Start(Object sender, EventArgs e) 25
{ 26
Application["user_sessions"] = 0; 27
} 28
29
protected void Session_Start(Object sender, EventArgs e) 30
{ 31
Application.Lock(); 32
Application["user_sessions"] = (int)Application["user_sessions"] + 1; 33
Application.UnLock(); 34
} 35
36
protected void Application_BeginRequest(Object sender, EventArgs e) 37
{ 38
39
} 40
41
protected void Application_EndRequest(Object sender, EventArgs e) 42
{ 43
44
} 45
46
protected void Application_AuthenticateRequest(Object sender, EventArgs e) 47
{ 48
49
} 50
51
protected void Application_Error(Object sender, EventArgs e) 52
{ 53
54
} 55
56
protected void Session_End(Object sender, EventArgs e) 57
{ 58
Application.Lock(); 59
Application["user_sessions"] = (int)Application["user_sessions"] - 1; 60
Application.UnLock(); 61
} 62
63
protected void Application_End(Object sender, EventArgs e) 64
{ 65
66
} 67
68
Web 窗体设计器生成的代码 78
} 79
} 80
81






}