用Ajax保持会话
摘要: 在一个项目中,需要让会话变量存在于页面关闭之前的整个周期内,尝试用asp.net ajax的方式来实现,代码如下所示: .aspx页面中,<body>标签:<body onload="KeepActive();"> 客户端JS代码: function KeepActive(){ PageMethods.KeepSession(); setTimeout("Keep...
阅读全文
posted @
2007-07-17 17:03 戒焦戒躁 阅读(266) |
评论 (0) 编辑