protected void Page_Load(object sender, EventArgs e) { btn_InformSupplier.Enabled = false; if (!IsPostBack) { GridView_supplier.DataSource = StoreBusinessLogic.AllSupplier(); GridView_supplier.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_supplier.DataSource = StoreBusinessLogic.AllSupplier(); GridView_supplier.DataBind(); }