using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; public partial class ModiPassword : System.Web.UI.Page { // UserData myud = new UserData(); LYS.UserData1 myud = new LYS.UserData1(); protected void Page_Load(object sender, EventArgs e) { } protected void Button1_Click(object sender, EventArgs e) { Boolean AC = myud.check_userlogin("UserS", "用户名", UserName.Text.ToString(), "密码", PassWord.Text.ToString()); if (AC) { if (ReNewPassWord.Text == NewPassWord.Text) { //修改密码 myud.UpdateUserPassword("UserS", NewPassWord.Text, "用户名", UserName.Text, "密码", PassWord.Text); Response.Write(""); } else { Response.Write(""); } } else { Response.Write(""); } } }