Esempio n. 1
0
    protected void btnConfirm_Click(object sender, EventArgs e)
    {
        string Id = Request.QueryString["Id"];

        try
        {
            //int gt = 1;
            //if(radnam.checked == false)
            //    {gt = 0;}

            NguoiDung tv = new NguoiDung();
            tv.MaNguoiDung = Convert.ToInt32(Id);
            tv.Email       = txtEmail.Text;
            tv.Quyen       = Convert.ToInt32(ddlQuyen.SelectedItem.Value);
            //tv.gioiinh = gt;

            tv.SuaThongTin();



            if (txtMK.Text != "")
            {
                tv.MatKhau = txtMK.Text;
                tv.ThayMatKhau();
            }

            litErr.Text = "Thay đổi thông tin thành công!";
        }
        catch
        {
            litErr.Text = "Thay đổi thông tin không thành công!";
        }
    }
Esempio n. 2
0
 protected void btnConfirm_Click(object sender, EventArgs e)
 {
     try
     {
         NguoiDung tv = new NguoiDung();
         tv.MaNguoiDung = Convert.ToInt32(Session["MaNguoiDung"]);
         tv.Email       = txtEmail.Text;
         tv.Quyen       = Convert.ToInt32(Session["Quyen"]);
         tv.SuaThongTin();
         litErr.Text = "Thay đổi thông tin thành công!";
     }
     catch
     {
         litErr.Text = "Thay đổi thông tin không thành công!";
     }
 }