ÎÂܰÌáʾ£º´úÂëÔÚÏßä¯ÀÀ¹¦ÄÜÖ»ÄÜ×öΪԴÂëä¯ÀÀ²Î¿¼£¬²»ÄÜչʾÏîÄ¿µÄÈ«²¿£¬Èç¹ûÏë¸ü½øÒ»²½Á˽â¸Ã´úÂëÇëÏÂÔØ£ºXMLͬѧ¼ϵͳԴÂ루±ÏÒµÉè¼Æ£©
µ±Ç°Îļþ·¾¶£ºXMLClassBooks/login.aspx.cs

1using System; 2
using System.Data; 3
using System.Configuration; 4
using System.Collections; 5
using System.Web; 6
using System.Web.Security; 7
using System.Web.UI; 8
using System.Web.UI.WebControls; 9
using System.Web.UI.WebControls.WebParts; 10
using System.Web.UI.HtmlControls; 11
12
public partial class login : System.Web.UI.Page 13
{ 14
protected void Page_Load(object sender, EventArgs e) 15
{ 16
//Response.Write(System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile("txl", "MD5")); 17
} 18
19
//µÇ½°´Å¥Ê¼þ 20
protected void btnLogin_Click(object sender, EventArgs e) 21
{ 22
Logic lg = new Logic(); 23
if (lg.SuperAdmin(this.txxAdmin.Text.Trim(), this.txtPwd.Text.Trim())) 24
Response.Redirect("admin.aspx"); 25
else 26
Response.Write("Õ˺ŻòÃÜÂë´íÎó!"); 27
} 28
} 29






}