コード例 #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     btnRedirectLogin.Visible = (Session["token"] == null || (string)Session["token"] == "");
     if (!IsPostBack)
     {
         cboService.DataSource = MoodleUtilites.GetServiceTable();
         cboService.DataBind();
     }
 }
コード例 #2
0
 protected void Page_Load(object sender, System.EventArgs e)
 {
     if (Session["token"] != null && Session["token"].ToString() != "")
     {
         palLogin.Visible = false;
         palUser.Visible  = true;
         MainMenu.Visible = true;
     }
     else
     {
         palLogin.Visible = true;
         palUser.Visible  = false;
         MainMenu.Visible = false;
         if (!IsPostBack)
         {
             cboService.DataSource = MoodleUtilites.GetServiceTable();
             cboService.DataBind();
         }
     }
 }
コード例 #3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Session["token"] != null && (string)Session["token"] != "")
     {
         if (Session["refUrl"] != null)
         {
             Response.Redirect((string)Session["refUrl"]);
         }
         else
         {
             Response.Redirect("~/");
         }
     }
     else
     {
         txtUsername.Focus();
         if (!IsPostBack)
         {
             cboService.DataSource = MoodleUtilites.GetServiceTable();
             cboService.DataBind();
         }
     }
 }