摘要:
if(Session["admin"]!=null){Session.Remove("admin");Session.RemoveAll();Response.Cookies["admin"].Expires=DateTime.Now;//从当前时间开始过期Response.Redirect("login.html");} 阅读全文
摘要:
1.在web.config中<system.web>节点下添加一句配置:<globalizationrequestEncoding="gb2312"responseEncoding="gb2312"fileEncoding="gb2312"culture="zh-CN"/>节点属性解释:requestEncoding:指定每一传入请求的假定的编码,包括已传递的数据和查询字符... 阅读全文