⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 security.aspx.cs

📁 中国工商网电子商务购物中心系统EMall 软件介绍: 完全公开源代码,并无任何许可限制,特别基于大型电子商务网站的系统开发 Microsoft SQL Server 2000后台数据库
💻 CS
字号:
///中国工商网.电子商务购物中心系统.EMall
///演示地址:http://emall.skysea.info
///演示界面:http://cs.12986.com/photos/sample/picture150.aspx

///中国工商网 -  http://www.12986.com
///Copyright (c) 1998-2005
///作者: Dili J.F. Senders

///技术支持:如果任何技术问题,请登录中国工商网技术支持网站咨询:http://cs.12986.com/

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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -