using System.Web; using System.Web.SessionState; public class MyApp { void Application_Start(object sender, EventArgs e) { Application("online_session") = 0; } void Session_Start(object sender, EventArgs e) { Application.Lock(); Application("online_session") = (int.Parse(Application("online_session")) + 1); Application.UnLock();//bbs.51aspx.com } void Session_End(object sender, EventArgs e) { Application.Lock();//51aspx Application("online_session") = (int.Parse(Application("online_session")) - 1); Application.UnLock(); } } 5、我能看到ASPX文件在ASP.NET中生成的代码吗? 本文由虚拟主机域名注册服务商 银众网络(http://www.yinzhong.net) 整理,如需转载,请保留来源。 (责任编辑:admin) |