using System;
using System.Collections.Generic;
//using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class Login : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Login1_Authenticate(object sender, AuthenticateEventArgs e)
{
string user_name = this.Login1.UserName.Trim();
string pass_word = this.Login1.Password.Trim();
if (!Dao.login(user_name,pass_word))
{
return;
}
Session["user_name"] = user_name;
Response.Redirect("~/Index.aspx");
}
}
Login.aspx.cs
最新推荐文章于 2022-06-27 08:53:54 发布