Asp.net中的Server,Session,Application.Global.asax
Posted on 2006-10-19 20:04 junhli 阅读(525) 评论(0) 收藏 举报不同的对象有不同的作用;
Server(UrlEnCode,mapath,HtmlEnCode,Server.excute)
Session(session_start,session_end,sessionID,lcid,count.session.timeout=1)
Application(1,先在grobal.asax可以设置Application.start{//连接,int(object)Application["total"]=Count},
2,在Session_Start中设置, Application.lock(),Application["total"]=(int)Application["tatol"]+1; 记得关掉Application.unlock(); This. lblshow.text=Applicaton["total"].ToString();
3,在Application_end中update记得转换和执行.update ? set num=+"Application["total"].ToString)
浙公网安备 33010602011771号