protect void Page_Load(Object sender, EventArgs e)
{
if (Session["something"] == null)
{
Session["something"] = new Object();
}}
{
if (Session["something"] == null)
{
Session["something"] = new Object();
}}
解决方案 »
- 关于VS2008.当运行项目时,VS就未响应。求解。
- 母版页的问题
- Gridview单元格取值问题
- HttpContext.Current.Items是什么?session, cache, application, request?
- 如何让跨多行的单元格中的表格自动与单元格一样高?
- 求助js效果 弹出对话框
- MS SQL Server 2005安装报错!
- 关于datetime比较的问题
- 急救,datagrid中的ItemCommand怎么不执行了?
- 急!高手们,思归!!!请帮忙。
- .net 中类似java applet的功能如何实现?
- 请教大家如何在DataGrid中的一个单元格内回车以后弹出一个列表,选取后取得值返回到DATAGRID中?
AutoEventWireup应该为true
在web.config中加入
<sessionState
mode="StateServer"
stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data source=127.0.0.1;user id=sa;password="
cookieless="false"
timeout="600"
/>