Session问题 这个是什么问题??

xiaosongaspnet xiaosongaspnet 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
protected HttpSessionState Session ; //--- The page session object



public string SessionCheck(Object parent)
{

string backstr="";
try
{
Session=((System.Web.UI.Page)parent).Session;

}
catch
{
Session=((System.Web.UI.UserControl)parent).Session;

}
if(Session["UserID"]==null)
{
backstr="<script>"+
"alert('登录时间超时,请重新登录!');parent.document.location.href='../login.aspx';"+
"</script>";
}
return backstr;

}



“Ether.Components.DesignClass.Session”上要求关键字 new,因为它隐藏了继承成员“System.Web.UI.Page.Session”
...全文
评论 6
收藏 已收藏
分享
返回顶部
xiaosongaspnet
.NET社区 62,274 成员 668,968 内容