[code=csharp public static bool Check(Page ValidatePage, string Area)
{
if (((ValidatePage.Session[“Admin”] != null) && (ValidatePage.Request.Cookies[“MemberName”] != null)) && (ValidatePage.Request.Cookies[“MemberName”] != null))
{
if (ValidatePage.Page.IsPostBack)
{
return true;
}
AdminCheck.Initialization();
AdminCheck.Command.CommandText = string.Concat(new object[] { “Select Groupid From Groups Where “, Area, “=1 And Groupid=”, Convert.ToInt32(ValidatePage.Session[“Admin”]) });
AdminCheck.Connection.Close();
AdminCheck.DataReader = AdminCheck.Command.ExecuteReader();
bool flag1 = AdminCheck.DataReader.Read();
AdminCheck.Connection.Open();
if (flag1)
{
return true;
}
AdminCheck.RedirectPage = “admin_error.aspx?error=cantmanage”;
return false;
}
AdminCheck.RedirectPage = “admin_login.aspx”;
return false;
}][/code]为什么会出现这个问题啊,应该没错的