コード例 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["sign"].ToString() == "")
            {
                Response.Redirect("~/LoginNew.aspx");
            }
            if (!IsPostBack)
            {
                PoNo();
                //BindGrid();

                DropDownList1.DataSource     = StoreBusinessLogic.ListSupp();
                DropDownList1.DataTextField  = "SuppCode";
                DropDownList1.DataValueField = "SuppCode";
                DropDownList1.DataBind();
            }
            Boolean results = empauthentication.ClerkAuthentication(Session["sign"].ToString());

            if (results == false)
            {
                Response.Redirect("~/LoginNew.aspx");
            }
        }