protected void Page_Load(object sender, EventArgs e) { Api.Logger log = new Api.Logger(); log.log("Visited saveGameScore.aspx"); string email = Request.QueryString["email"].ToString(); string password = Request.QueryString["password"].ToString(); string gameId = Request.QueryString["gameid"].ToString(); string score = Request.QueryString["score"].ToString(); saveData(email, password, int.Parse(gameId), int.Parse(score)); if (gameId == "1") { Response.Redirect("swaggybird.aspx"); } else if (gameId == "2") { Response.Redirect("minesweeper.aspx"); } else { Response.Redirect("games.aspx"); } }
protected void Page_Load(object sender, EventArgs e) { Api.Logger log = new Api.Logger(); log.log("Visited login.aspx"); if (Request.Cookies["login_cookie"] != null) { Response.Redirect("default.aspx"); } }
protected void Page_Load(object sender, EventArgs e) { Api.Logger log = new Api.Logger(); log.log("Visited settings.aspx"); if (!IsPostBack) { HttpCookie styleCookie = Request.Cookies["styleCookie"]; if (styleCookie != null) { DDL_basestyle.SelectedIndex = int.Parse(styleCookie.Value); } } }
protected void Page_Load(object sender, EventArgs e) { Api.Logger log = new Api.Logger(); log.log("Visited default.aspx"); if (Request.Cookies["login_cookie"] != null) { Label_displayName.Text = "Uw display name is " + Request.Cookies["login_cookie"].Values["display_name"]; Label_email.Text = "Uw email is " + Request.Cookies["login_cookie"].Values["email"]; } else { Label_email.Text = "U bent niet ingelogd."; HL_login.Text = "Klik hier om in te loggen."; } }
protected void Page_Load(object sender, EventArgs e) { Api.Logger log = new Api.Logger(); log.log("Visited house.aspx"); daHaus.Connect(); if (daHaus.Connected) { connectionStatus.Text = "Connection"; connectionStatus.CssClass = "connected"; } else { connectionStatus.Text = "No Connection"; connectionStatus.CssClass = "disconnected"; } }
protected void Page_Load(object sender, EventArgs e) { Api.Logger log = new Api.Logger(); log.log("Visited logout.aspx"); }