protected void Page_Load(object sender, EventArgs e) { dev = (Developer)Session["dev"]; if (dev == null) { Response.Redirect("404"); } games.Games = Game.GamesByDeveloper(dev.Id); salesChart.Sales = Sales.CompanyStats(dev.Id); DeveloperNameField.Text = dev.DeveloperName; AboutField.Text = dev.About; PageLink.NavigateUrl = "CompanyPage.aspx?dev=" + dev.Id; }