web.config中:
<sessionState
mode="InProc"
cookieless="false"
timeout="20"
/>
// 可以保存保存读者名字到个人 cookie
Response.Cookies["DigitalLib_ReaderName"].Value = readerDetails.ReaderName;
Session["ReaderName"] = readerDetails.ReaderName;
Label2.Text=Session["ReaderName"].ToString();//说空引用 ???
<sessionState
mode="InProc"
cookieless="false"
timeout="20"
/>
// 可以保存保存读者名字到个人 cookie
Response.Cookies["DigitalLib_ReaderName"].Value = readerDetails.ReaderName;
Session["ReaderName"] = readerDetails.ReaderName;
Label2.Text=Session["ReaderName"].ToString();//说空引用 ???
解决方案 »
- 获取浏览器信息(默认浏览器)?
- C# asp调用COM组件失败,报"尝试读取或写入受保护的内存。这通常指示其他内存已损坏"错误
- 怎样把本地图片上传(插入到)到数据库(某一字段)中?
- vb 取掉字符串
- 登陆次数解决方案
- 放弃了VS2005,最终选择了VS2003
- WebBrowser控件在哪儿
- 为什么在自定义控件的隐藏代码中不能用Response.Write
- 高手帮忙下 IE7下的问题
- 为什么RequiredFieldValidator除了验证textbox以外都有问题??
- button触发脚本后的问题
- DataGrid 的 attributes.add 问题:我想点击删除按钮先弹出对话框,不成功阿!各位帮帮忙
Label2.Text=Session["ReaderName"];Response.Write(Session["ReaderName"];