Ejemplo n.º 1
0
        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");
            }
        }
Ejemplo n.º 2
0
 private void bindgrid()
 {
     GridView_department.DataSource = StoreBusinessLogic.AllDepartment();
     GridView_department.DataBind();
 }