資源簡介
020ASP.NET車輛綜合管理系統(tǒng).zip

代碼片段和文件信息
using?System;
using?System.Data;
using?System.Configuration;
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?_Default?:?System.Web.UI.Page?
{
????protected?void?Page_Load(object?sender?EventArgs?e)
????{
???????
????????????if?(!this.IsPostBack)
????????????{
????????????????this.ViewState[“GUID“]?=?System.Guid.NewGuid().ToString();
????????????????this.lblGUID.Text?=?this.ViewState[“GUID“].ToString();
????????????}
??????
????}
????protected?void?btnLogin_Click(object?sender?ImageClickEventArgs?e)
????{
????????#region?檢查驗證碼
????????if?((Session[“CheckCode“]?!=?null)?&&?(Session[“CheckCode“].ToString()?!=?““))
????????{
????????????if?(Session[“CheckCode“].ToString().ToLower()?!=?this.CheckCode.Value.ToLower())
????????????{
????????????????this.lblMsg.Text?=?“所填寫的驗證碼與所給的不符?!“;
????????????????Session[“CheckCode“]?=?null;
????????????????return;
????????????}
????????????else
????????????{
????????????????Session[“CheckCode“]?=?null;
????????????}
????????}
????????else
????????{
????????????Response.Redirect(“Default.aspx“);
????????}
????????#endregion
????????Maticsoft.BLL.db_User?db?=?new?Maticsoft.BLL.db_User();
????????Maticsoft.Model.db_User?mode=db.GetModel(this.txtUsername.Value?this.txtPass.Value);
????????if?(mode!=null)
????????{
????????????Session[“USERINFO“]?=?mode;
????????????Response.Redirect(“Main.aspx“);
????????}
????????else
????????{
????????????this.lblMsg.Text?=?“你的賬號密碼有誤“;
????????}
????}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????2359068??2013-03-14?23:10??020ASP.NET車輛綜合管理系統(tǒng)演示錄像.exe
-----------?---------??----------?-----??----
??????????????2359068????????????????????1
評論
共有 條評論