You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.1 KiB
36 lines
1.1 KiB
2 years ago
|
using System;
|
||
|
using System.Data;
|
||
|
using System.Configuration;
|
||
|
using System.Collections;
|
||
|
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 Login : System.Web.UI.PageEx
|
||
|
{
|
||
|
protected void Page_Load(object sender, EventArgs e)
|
||
|
{
|
||
|
TopUc1.SetNoLoginLayout();
|
||
|
}
|
||
|
protected void btnLogin_Click(object sender, EventArgs e)
|
||
|
{
|
||
|
// if (txtUserName.Text.Trim() != "" && txtPasswd.Text.Trim() != "")
|
||
|
// {
|
||
|
//DataSet ds = Dal.UsersDal.Select(" username='" + SqlHelper.String(txtUserName.Text) + "' and passwd='" + SqlHelper.String(txtPasswd.Text) + "'");
|
||
|
//if (SqlHelper.HasRow(ds))
|
||
|
//{
|
||
|
// Model.Users users = new Model.Users(ds.Tables[0].Rows[0]);
|
||
|
// UserId = users.UserId;
|
||
|
// RoleId = users.Rid;
|
||
|
/*Test*/
|
||
|
UserId = 1;
|
||
|
RoleId = 1;
|
||
|
Response.Redirect("default.aspx");
|
||
|
//}
|
||
|
// }
|
||
|
}
|
||
|
}
|