private void ChangePwd() { string oldPwd = Request["oldPwd"]; string newPwd = Request["newPwd"]; string newPwd1 = Request["newPwd1"]; userinfo objU = (userinfo)SysUser.Clone(); if (Encrypt_MD5.Encrypt(oldPwd) == SysUser.User_Pwd) { objU.User_Pwd = Encrypt_MD5.Encrypt(newPwd); (new userinfo_Bll()).Modify(objU); SysUser = objU; } else { objU.User_No = ""; } DataContractJsonSerializer json = new DataContractJsonSerializer(objU.GetType()); json.WriteObject(Response.OutputStream, objU); Response.End(); }