using System; using System.Collections.Generic; using System.Data; using System.Data.Objects; using System.Data.SqlClient; using System.Linq; using System.Transactions; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using WebApp.LIBS; using System.Text.RegularExpressions; namespace WebApp.students { public partial class index : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void login_Click(object sender, EventArgs e) { var objUser = Business.UserLogin.GetUser(Email.Text, Password.Text); if (objUser != null) { if (objUser.RoleId == (int)SiteKey.UserRole.Admin) { SiteSession.IsLoggedIn = true; SiteSession.LoginUser = objUser; Response.Redirect("~/SessionPage.aspx"); } } else { message.Text = "