AmendPwd.aspx.cs
上传用户:shjujing
上传日期:2022-07-28
资源大小:11244k
文件大小:1k
源码类别:

Email客户端

开发平台:

Visual C++

  1. using System;
  2. using System.Data;
  3. using System.Configuration;
  4. using System.Collections;
  5. using System.Web;
  6. using System.Web.Security;
  7. using System.Web.UI;
  8. using System.Web.UI.WebControls;
  9. using System.Web.UI.WebControls.WebParts;
  10. using System.Web.UI.HtmlControls;
  11. public partial class Module_Employee_ProRes_AmendPwd : System.Web.UI.Page
  12. {
  13.     protected void Page_Load(object sender, EventArgs e)
  14.     {
  15.     }
  16.     protected void btnOK_Click(object sender, EventArgs e)
  17.     {
  18.         string cmdtxt = "Update tb_User set Password='"+this.txtAmendPwd.Text+"' where UserName='"+Session["UserName"].ToString()+"'";
  19.         SqlData da = new SqlData();
  20.         if (da.ExceSQL(cmdtxt))
  21.         {
  22.             Response.Write("<script language=javascript>alert('操作成功!');location='javascript:history.go(-1)'</script>");
  23.         }
  24.         else
  25.         {
  26.             Response.Write("<script language=javascript>alert('操作失败!');location='javascript:history.go(-1)'</script>");
  27.         }
  28.     }
  29. }