ViewState is saved in a hidden control in the current page, if you do a postback, (time is not important), the ViewState will be available, but if you do a redirection, the ViweState wil not be available (duh!)if you need some information to hang around and be available across requrests, either save in a cookie or session or application variable or databaseseeASP.NET: Nine Options for Managing Persistent User State in Your ASP.NET Application
http://msdn.microsoft.com/msdnmag/issues/03/04/ASPNETUserState/default.aspx
http://msdn.microsoft.com/msdnmag/issues/03/04/ASPNETUserState/default.aspx
解决方案 »
- 大虾,能说下这是怎么实现的吗?
- 关于调试的问题
- 大侠们,能帮我分析这个 w3wp_010510_113341上午.dmp
- 为什么form action="Default3.aspx"后还是返回原先
- Asp.net調用ORCal的字體轉換問題
- 如何用Select语句 区分大小写 查询ACCESS数据库里的记录
- datagrid的DropDownList模板列?马上揭帖
- 如果更改vs.net的自动调整功能?从html视图切换到设计视图能不能不要动我的格式啊
- 点击按钮,怎么新建窗口啊?
- jquery mobile ajax post 无效
- 谁有<<asp.net技术内幕>>第28章的C#例子?
- 如何在DropDownList的SelectedIndexChanged事件中实现页面跳转,并指定打开页面的目标窗口(即指定target=)
if (ViewState["Key"] == null)
{
ViewState["Key"] == Session["ss"].ToString();
}