Session问题 这个是什么问题??
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”