2011年3月29日

摘要: application最经典的一个方法:统计在线人数,这需要借助于我们的全局应用程序类来对登录的用户信息进行统计:void application_start(object sender, eventargs e) { //在应用程序启动时运行的代码 application["count"] = 0; system.io.filestream fs = system.io.file.open(server.mappath("count.txt"), system.io.filemode.openorcreate); system.io.streamrea 阅读全文
posted @ 2011-03-29 21:19 志向不在北京 阅读(793) 评论(1) 推荐(0) 编辑

导航