//在Global.asax设置
void Application_Start(object sender, EventArgs e)
{
// 在应用程序启动时运行的代码
Application.Lock();
Application["b"] = 0;
Application.UnLock();
}
protected void Page_Load(object sender, EventArgs e)
{
Application["b"] =(int) Application["b"]+1;
Response.Write(Application["b"]);
}