protected void Page_Load(object sender, EventArgs e) { btn_Inform.Enabled = false; if (!IsPostBack) { GridView_department.DataSource = StoreBusinessLogic.AllDepartment(); GridView_department.DataBind(); } if (Session["sign"].ToString() == "") { Response.Redirect("~/LoginNew.aspx"); } Boolean results = empauthentication.ClerkAuthentication(Session["sign"].ToString()); if (results == false) { Response.Redirect("~/LoginNew.aspx"); } }
private void bindgrid() { GridView_department.DataSource = StoreBusinessLogic.AllDepartment(); GridView_department.DataBind(); }