ClearUserPassWord.aspx.cs
上传用户:simon2hong
上传日期:2021-11-18
资源大小:16746k
文件大小:1k
- using System;
- using System.Data;
- using System.Configuration;
- using System.Collections;
- using System.Web;
- using System.Web.Security;
- using System.Web.UI;
- using System.Web.UI.WebControls;
- using System.Web.UI.WebControls.WebParts;
- using System.Web.UI.HtmlControls;
- public partial class ResponseReBack_ClearUserPassWord : System.Web.UI.Page
- {
- protected void Page_Load(object sender, EventArgs e)
- {
- if (Request.QueryString["id"] != null)
- {
- string IdStr = Request.QueryString["id"].ToString();
- BLL.Users BU = new BLL.Users();
- Model.Users MU = BU.GetModel(int.Parse(IdStr));
- MU.Password = "";
- BU.Update(MU);
- MessageBox.Show("清除密码成功!","../UserManager.aspx");
- }
- }
- }