protected void Lblogins_Click(object sender, EventArgs e) { if (user.updateAdd(_iUserID, Txtadd.Text, Drcity.SelectedValue, Drdistric.SelectedValue)) { string strScript = "<script>"; strScript += "alert(' Cập nhật thành công!');"; strScript += "window.location='/m-dia-chi-giao-hang.html';"; strScript += "</script>"; Page.RegisterClientScriptBlock("strScript", strScript); } //else //{ // string strScript = "<script>"; // strScript += "alert(' 2 mật khẩu không giống nhau!');"; // strScript += "</script>"; // Page.RegisterClientScriptBlock("strScript", strScript); //} }