protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { GridView1.DataSource = StoreBusinessLogic.GetAVListMan(); GridView1.DataBind(); } if (Session["sign"].ToString() == "") { Response.Redirect("~/LoginNew.aspx"); } Boolean results = empauthentication.ManagerAuthentication(Session["sign"].ToString()); if (results == false) { Response.Redirect("~/LoginNew.aspx"); } }