protected void Page_Load(object sender, EventArgs e) { proxy = (TakiWebService)Session["Proxy"]; if (!IsPostBack) { BuildYearSelect(); } }
protected void Page_Load(object sender, EventArgs e) { proxy = (TakiWebService)Session["Proxy"]; if (!proxy.IsSessionConnected()) { Response.Redirect("~/Home.aspx"); } UserDetailsTable.user = proxy.GetConnectedUser(); }
protected void Page_Load(object sender, EventArgs e) { proxy = (TakiWebService)Session["Proxy"]; WSRank[] ranks = proxy.GetAllRanks(); if (!IsPostBack) { LeaderboardGrid.DataSource = proxy.GetAllUsersInRank(ranks[0]); LeaderboardGrid.DataBind(); RankDropDown.DataSource = proxy.GetAllRanks(); RankDropDown.DataBind(); } }
protected void Page_Load(object sender, EventArgs e) { proxy = (TakiWebService)Session["Proxy"]; if (Request.QueryString["username"] != null) { string username = Request.QueryString["username"]; try { UserDetailsTable.user = proxy.GetUserDetails(username); } catch { ErrorLbl.Text = "This User Doesn't Exist"; } } }
protected void Page_Init(object sender, EventArgs e) { if (Session["Proxy"] == null) { proxy = new TakiWebService(); proxy.CookieContainer = new System.Net.CookieContainer(); Session["Proxy"] = proxy; } proxy = (TakiWebService)Session["Proxy"]; if (proxy.IsSessionConnected()) { Table1.Rows.Add(CreateLinkRow(@"..\Leaderboard.aspx", "Leaderboard")); Table1.Rows.Add(CreateButtonRow(LogOut, "Log Out")); Table1.Rows.Add(CreateLinkRow(@"..\Account.aspx", "Account")); } else { Table1.Rows.Add(CreateLinkRow(@"..\SignUp.aspx", "Sign up")); Table1.Rows.Add(CreateLinkRow(@"..\SignIn.aspx", "Sign in")); } }
protected void Page_Load(object sender, EventArgs e) { proxy = (TakiWebService)Session["Proxy"]; }