protected void btnCustLogin_Click(object sender, EventArgs e)
        {
            int    custID = Convert.ToInt32(txtBoxCustPass.Text.ToString());
            string pass   = txtBoxCustPass.Text.ToString();

            if (CustomerLoginCheck.checkcustlogin(custID, pass) == true)
            {
                Response.Redirect("Index.aspx");
            }
        }
示例#2
0
        protected void clicke(object sender, EventArgs e)
        {
            //grab values entered into textboxes then pass for customer credential validation
            string pass2 = txtboxPass.Text.ToString();

            int ID2 = Convert.ToInt32((txtBoxID.Text.ToString()));

            if (CustomerLoginCheck.checkcustlogin(ID2, pass2) == true)
            {
                Application["CustomerID"] = ID2;
                Response.Redirect("Customer_Logged_In.aspx");
            }
        }