Exemple #1
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            AL.indexProperties.email    = Txt_Email.Text.Trim().ToString();
            AL.indexProperties.password = Txt_Password.Text.Trim().ToString();
            string result = AL.LoginCheck();

            if (result == "Exists")
            {
                Session.Add("Username", Txt_Email.Text);
                Response.Redirect("Manage_Products.aspx");
            }
            else
            {
                Lbl_Message.Text = "Please enter a valid mail id and password.";
            }
        }