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 UserManage_changepwd : System.Web.UI.Page
{
private decimal User_Login_ID;
protected void Page_Load(object sender, EventArgs e)
{ }
protected void OK_Click(object sender, EventArgs e)
{
DFWT.Model.User_LogIn userModel = new DFWT.Model.User_LogIn();
userModel.User_Login_ID = this.User_Login_ID;
userModel.User_Login_State = true;
userModel.User_Login_Pwd = txtOldPwd.Text;
if(txtNewPwd.Text=="")
{
LTP.Common.MessageBox.ShowAndRedirect(this,OperIni.ReadValue(0003),"userindex.aspx");
}
if(txtNewPwd!=txtNewPwd1)
{
LTP.Common.MessageBox.ShowAndRedirect(this, OperIni.ReadValue(0003), "userindex.aspx"); }
DFWT.BLL.User_LogIn userBLL = new DFWT.BLL.User_LogIn();
userBLL.ShopAdminUpdatePwd(userModel);
LTP.Common.MessageBox.ShowAndRedirect(this, OperIni.ReadValue(0003), "InformationClass.aspx");
}
}
修改密码文体写到这不会了
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 UserManage_changepwd : System.Web.UI.Page
{
private decimal User_Login_ID;
protected void Page_Load(object sender, EventArgs e)
{ }
protected void OK_Click(object sender, EventArgs e)
{
DFWT.Model.User_LogIn userModel = new DFWT.Model.User_LogIn();
userModel.User_Login_ID = this.User_Login_ID;
userModel.User_Login_State = true;
userModel.User_Login_Pwd = txtOldPwd.Text;
if(txtNewPwd.Text=="")
{
LTP.Common.MessageBox.ShowAndRedirect(this,OperIni.ReadValue(0003),"userindex.aspx");
}
if(txtNewPwd!=txtNewPwd1)
{
LTP.Common.MessageBox.ShowAndRedirect(this, OperIni.ReadValue(0003), "userindex.aspx"); }
DFWT.BLL.User_LogIn userBLL = new DFWT.BLL.User_LogIn();
userBLL.ShopAdminUpdatePwd(userModel);
LTP.Common.MessageBox.ShowAndRedirect(this, OperIni.ReadValue(0003), "InformationClass.aspx");
}
}
修改密码文体写到这不会了
if(userModel !=null)
{
userModel.User_Login_Pwd = txtOldPwd.Text;
BLL.Edit(userModel );
}User_Login_ID 定义为属性
在页面层有三个文本框和一个确认按钮,主要是实现密码修改,方法调用bll层,数据调用的model层