Ejemplo n.º 1
0
    protected void Button4_Click(object sender, EventArgs e)
    {
        MultiView1.ActiveViewIndex = 1;
        UDT = UAdapter.Select_BY_Email(Session["uname"].ToString());

        ViewState["uid"] = UDT.Rows[0]["uid"].ToString();
        txtname.Text     = UDT.Rows[0]["name"].ToString();
        txtsurname.Text  = UDT.Rows[0]["surname"].ToString();
        txtaddd.Text     = UDT.Rows[0]["address"].ToString();
        txtcity.Text     = UDT.Rows[0]["city"].ToString();
        txtpincode.Text  = UDT.Rows[0]["pincode"].ToString();
        txtmpbile.Text   = UDT.Rows[0]["mobile"].ToString();
    }
Ejemplo n.º 2
0
    protected void Button3_Click(object sender, EventArgs e)
    {
        MultiView1.ActiveViewIndex = 0;
        UDT = UAdapter.Select_BY_Email(Session["uname"].ToString());

        ViewState["uid"] = UDT.Rows[0]["uid"].ToString();
        lblname.Text     = UDT.Rows[0]["name"].ToString();
        lblsurnam.Text   = UDT.Rows[0]["surname"].ToString();
        lbladdrss.Text   = UDT.Rows[0]["address"].ToString();
        lblcity.Text     = UDT.Rows[0]["city"].ToString();
        lblpin.Text      = UDT.Rows[0]["pincode"].ToString();
        lblcont.Text     = UDT.Rows[0]["mobile"].ToString();
    }
Ejemplo n.º 3
0
 protected void btnlogin_Click(object sender, EventArgs e)
 {
     UDT = UAdapter.Select_FOR_Forgot_password(txtemail.Text, txtmobile.Text);
     if (UDT.Rows.Count > 0)
     {
         txtemail.Text = "";
         lblpass.Text  = "Your Password = "******"Password"].ToString();
         lblerror.Text = "";
     }
     else
     {
         lblerror.Text = "Invalid mobile or email";
     }
 }
Ejemplo n.º 4
0
    protected void Button2_Click(object sender, EventArgs e)
    {
        UAdapter.Update(Convert.ToInt32(ViewState["uid"].ToString()), txtname.Text, txtsurname.Text, txtaddd.Text, txtcity.Text, txtpincode.Text, txtmpbile.Text);
        UDT = UAdapter.Select_BY_Email(Session["uname"].ToString());

        ViewState["uid"] = UDT.Rows[0]["uid"].ToString();
        txtname.Text     = UDT.Rows[0]["name"].ToString();
        txtsurname.Text  = UDT.Rows[0]["surname"].ToString();
        txtaddd.Text     = UDT.Rows[0]["address"].ToString();
        txtcity.Text     = UDT.Rows[0]["city"].ToString();
        txtpincode.Text  = UDT.Rows[0]["pincode"].ToString();
        txtmpbile.Text   = UDT.Rows[0]["mobile"].ToString();
        lblmsg.Text      = "Detail updated successfully";
    }
Ejemplo n.º 5
0
 protected void btnlogin_Click(object sender, EventArgs e)
 {
     UDT = UAdapter.Seleect_FOR_LOGIN(txtuname.Text, txtpass.Text);
     if (UDT.Rows.Count > 0)
     {
         Session["uname"] = txtuname.Text;
         Session["fname"] = UDT.Rows[0]["name"].ToString();
         Session["lname"] = UDT.Rows[0]["surname"].ToString();
         Response.Redirect("User/Default.aspx");
     }
     else
     {
         lblerror.Text = "Error !!!";
     }
 }
Ejemplo n.º 6
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Page.IsPostBack == false)
        {
            UDT = UAdapter.Select_BY_Email(Session["uname"].ToString());

            ViewState["uid"] = UDT.Rows[0]["uid"].ToString();
            txtname.Text     = UDT.Rows[0]["name"].ToString();
            txtsurname.Text  = UDT.Rows[0]["surname"].ToString();
            txtaddd.Text     = UDT.Rows[0]["address"].ToString();
            txtcity.Text     = UDT.Rows[0]["city"].ToString();
            txtpincode.Text  = UDT.Rows[0]["pincode"].ToString();
            txtmpbile.Text   = UDT.Rows[0]["mobile"].ToString();
        }
    }
Ejemplo n.º 7
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Page.IsPostBack == false)
        {
            UDT = UAdapter.Select_BY_Email(Session["uname"].ToString());

            ViewState["uid"] = UDT.Rows[0]["uid"].ToString();
            lblname.Text     = UDT.Rows[0]["name"].ToString();
            lblsurnam.Text   = UDT.Rows[0]["surname"].ToString();
            lbladdrss.Text   = UDT.Rows[0]["address"].ToString();
            lblcity.Text     = UDT.Rows[0]["city"].ToString();
            lblpin.Text      = UDT.Rows[0]["pincode"].ToString();
            lblcont.Text     = UDT.Rows[0]["mobile"].ToString();
        }
        lblmsg.Text = "";
        MultiView1.ActiveViewIndex = 0;
    }