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