示例#1
0
    public void Login()
    {
        Object UserLogin = new Object();

        UserLogin.Mobile   = TxtMobile.Text;
        UserLogin.Password = TxtPassword.Text;
        DataTable dt = BSLAYER.LoginUser(UserLogin);
        int       r  = dt.Rows.Count;

        if (r < 1)
        {
            // PanelAlert.Visible = true;
            TxtMobile.Text   = "";
            TxtPassword.Text = "";
        }
        else
        {
            //PanelAlert.Visible = false;
            Session["OrderNo"] = LblOrderid.Text;
            Session["Total"]   = LblAmount.Text;
            Session["Name"]    = dt.Rows[0]["Name"].ToString();
            Session["Mail"]    = dt.Rows[0]["Email"].ToString();
            Session["Mobile"]  = dt.Rows[0]["Mobile"].ToString();
            Session["Address"] = dt.Rows[0]["Address"].ToString();
            Session["Pin"]     = dt.Rows[0]["Pincode"].ToString();
            Response.Redirect("transaction");
        }
    }
示例#2
0
    public void Login()
    {
        Object UserLogin = new Object();

        UserLogin.Mobile   = TxtMobile.Text;
        UserLogin.Password = TxtPassword.Text;
        DataTable dt = BSLAYER.LoginUser(UserLogin);
        int       r  = dt.Rows.Count;

        if (r < 1)
        {
            PanelAlert.Visible = true;
            TxtMobile.Text     = "";
            TxtPassword.Text   = "";

            //Response.Redirect("User-Login.aspx");
        }
        else
        {
            Session["Loggedin"] = "1";
            Session["Name"]     = dt.Rows[0]["Name"].ToString();
            Session["Mail"]     = dt.Rows[0]["Email"].ToString();
            Session["Mobile"]   = dt.Rows[0]["Mobile"].ToString();
            Session["Address"]  = dt.Rows[0]["Address"].ToString();
            Session["Pin"]      = dt.Rows[0]["Pincode"].ToString();
            Response.Redirect("account");
        }
    }
示例#3
0
    public void Login()
    {
        string encryp    = FormsAuthentication.HashPasswordForStoringInConfigFile(TxtPassword.Text, "SHA1");
        Object UserLogin = new Object();

        UserLogin.Mobile   = TxtMobile.Text;
        UserLogin.Password = encryp;
        DataTable dt = BSLAYER.LoginUser(UserLogin);
        int       r  = dt.Rows.Count;

        if (r < 1)
        {
            Lbllogmsg.Visible = true;
            TxtMobile.Text    = "";
            TxtPassword.Text  = "";
            TxtMobile.Focus();
            TxtMobile.BorderColor = System.Drawing.Color.Red;
        }
        else
        {
            Lbllogmsg.Visible   = false;
            Session["Loggedin"] = "1";
            Session["Name"]     = dt.Rows[0]["Name"].ToString();
            Session["Mail"]     = dt.Rows[0]["Email"].ToString();
            Session["Mobile"]   = dt.Rows[0]["Mobile"].ToString();
            Session["Address"]  = dt.Rows[0]["Address"].ToString();
            Session["Pin"]      = dt.Rows[0]["Pincode"].ToString();
            Response.Redirect("account");
        }
    }
示例#4
0
    public void Login()
    {
        string encryp    = FormsAuthentication.HashPasswordForStoringInConfigFile(TxtPassword.Text, "SHA1");
        Object UserLogin = new Object();

        UserLogin.Mobile   = TxtMobile.Text;
        UserLogin.Password = encryp;
        DataTable dt = BSLAYER.LoginUser(UserLogin);
        int       r  = dt.Rows.Count;

        if (r < 1)
        {
            Lbllogmsg.Visible = true;
            TxtMobile.Text    = "";
            TxtPassword.Text  = "";
            TxtMobile.Focus();
            TxtMobile.BorderColor = System.Drawing.Color.Red;
        }
        else
        {
            Lbllogmsg.Visible  = false;
            Session["OrderNo"] = LblOdId.Text;
            Session["Total"]   = PurchaseAmnt.Value;
            Session["Name"]    = dt.Rows[0]["Name"].ToString();
            Session["Mail"]    = dt.Rows[0]["Email"].ToString();
            Session["Mobile"]  = dt.Rows[0]["Mobile"].ToString();
            Session["Address"] = dt.Rows[0]["Address"].ToString();
            Session["Pin"]     = dt.Rows[0]["Pincode"].ToString();
            Response.Redirect("transaction");
            generatetran();
            //BtnOrder.Visible = true;
            TxtMobile.Visible   = false;
            TxtPassword.Visible = false;
            BtnLogin.Visible    = false;
        }
    }