
























Session的写入
//将错误信息写入Session
Session["sessionError"] = strError;
//跳转至错误处理页面
Server.Transfer("Error.aspx");
Session的读出和清除
//得到前页Session
string strError = Session["sessionError"].ToString();
ErrorShow(strError);
Session.Remove("sessionError");
Session的彻底清除可以用 Session.Clear();
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。