protected void Page_Load(object sender, EventArgs e) { mDBController = new DBController(Session.SessionID); if (isLoggedIn) { Server.Transfer("~/Controller.aspx"); } else { tbId.Focus(); } }
protected void Page_Load(object sender, EventArgs e) { if (!isLoggedIn) { Server.Transfer("~/Default.aspx"); } else { mDBController = new DBController(Session.SessionID); if (!IsPostBack) { updateUI(); } } }