security.aspx.cs
来自「电子商城源代码,包含项目工程文件! 数据库建表语句 具体功能包括电子购物车,」· CS 代码 · 共 72 行
CS
72 行
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
namespace EMall
{
/// <summary>
/// Summary description for Security.
/// </summary>
public class Security : System.Web.UI.Page
{
protected Pub pub = new Pub();
protected System.Web.UI.WebControls.TextBox TextBox1;
protected System.Web.UI.WebControls.TextBox TextBox2;
protected System.Web.UI.WebControls.TextBox TextBox3;
protected System.Web.UI.WebControls.Button Button1;
protected System.Web.UI.WebControls.RequiredFieldValidator RequiredFieldValidator1;
protected System.Web.UI.WebControls.RequiredFieldValidator RequiredFieldValidator2;
protected System.Web.UI.WebControls.CompareValidator CompareValidator1;
protected System.Web.UI.WebControls.Label Label1;
protected System.Web.UI.WebControls.Panel Panel1;
private void Page_Load(object sender, System.EventArgs e)
{
// Put user code to initialize the page here
pub.sTitle = pub.sTitle + " -- 修改密码";
}
#region Web Form Designer generated code
override protected void OnInit(EventArgs e)
{
//
// CODEGEN: This call is required by the ASP.NET Web Form Designer.
//
InitializeComponent();
base.OnInit(e);
}
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
}
#endregion
private void Button1_Click(object sender, System.EventArgs e)
{
// 获取并校验旧密码
// 保存新密码
// 提示操作结果
if (Page.IsValid)
{
string sStr = Request.Cookies["ShoppingCartUser"].Value.ToString();
string sStr1 = TextBox1.Text.Trim();
string sStr2 = TextBox2.Text.Trim();
string sReturn = pub.spCustomersUpdatePassword(sStr, sStr1, sStr2);
Label1.Text = sReturn;
}
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?