Exemplo n.º 1
0
 protected void btnDangKi_Click(object sender, EventArgs e)
 {
     if (txtUserName.Text == "" || txtPassWord.Text == "")
     {
         lblThongBao.Text = "Bạn Không Được Để Trống Tên Đăng Nhập Hoặc Mật Khẩu ";
         txtUserName.Text = "";
         txtPassWord.Text = "";
         txtUserName.Focus();
     }
     else
     {
         dt.DangNhap_Insert(txtUserName.Text, txtPassWord.Text);
         Response.Redirect("index.aspx");
     }
 }