?? login.aspx.cs
字號:
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 WebApplication2
{
/// <summary>
/// WebForm1 的摘要說明。
/// </summary>
public class WebForm1 : System.Web.UI.Page
{
protected System.Web.UI.WebControls.Button btnTransfer;
protected System.Web.UI.WebControls.Button btnFetchMoney;
protected System.Web.UI.WebControls.Button btnExit;
protected System.Web.UI.WebControls.Button btnQuery;
protected System.Web.UI.WebControls.Button btnReworkPwd;
protected System.Web.UI.WebControls.Label Label1;
protected System.Web.UI.WebControls.Button btnDeposit;
protected System.Web.UI.WebControls.Label Label2;
protected System.Web.UI.WebControls.Label Label3;
public string account;
private void Page_Load(object sender, System.EventArgs e)
{
account=Request.QueryString["Account"];
this.Label1.Text="帳戶:"+account+" 歡迎登錄!";
// 在此處放置用戶代碼以初始化頁面
}
#region Web 窗體設(shè)計(jì)器生成的代碼
override protected void OnInit(EventArgs e)
{
//
// CODEGEN: 該調(diào)用是 ASP.NET Web 窗體設(shè)計(jì)器所必需的。
InitializeComponent();
base.OnInit(e);
}
/// <summary>
/// 設(shè)計(jì)器支持所需的方法 - 不要使用代碼編輯器修改
/// 此方法的內(nèi)容。
/// </summary>
private void InitializeComponent()
{
this.btnTransfer.Click += new System.EventHandler(this.btnTransfer_Click);
this.btnDeposit.Click += new System.EventHandler(this.btnDeposit_Click);
this.btnFetchMoney.Click += new System.EventHandler(this.btnFetchMoney_Click);
this.btnExit.Click += new System.EventHandler(this.btnExit_Click);
this.btnQuery.Click += new System.EventHandler(this.btnQuery_Click);
this.btnReworkPwd.Click += new System.EventHandler(this.btnReworkPwd_Click);
this.Load += new System.EventHandler(this.Page_Load);
}
#endregion
private void btnQuery_Click(object sender, System.EventArgs e)// 查詢
{
Response.Redirect("Query.aspx?Account="+account);
}
private void btnFetchMoney_Click(object sender, System.EventArgs e)// 取款
{
Response.Redirect("FetchMoney.aspx?Account="+account);
}
private void btnDeposit_Click(object sender, System.EventArgs e)// 存款
{
Response.Redirect("Deposit.aspx?Account="+account);
}
private void btnTransfer_Click(object sender, System.EventArgs e)// 轉(zhuǎn)帳
{
Response.Redirect("MoveMoney.aspx?Account="+account);
}
private void btnReworkPwd_Click(object sender, System.EventArgs e)// 修改密碼
{
Response.Redirect("UpdatePassword.aspx?Account="+account);
}
private void btnExit_Click(object sender, System.EventArgs e)// 退出
{
Response.Redirect("index.aspx");
}
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -