protected void Page_Load(object sender, EventArgs e) { if (Request.QueryString["Id"] != null) { DeleteButton.Visible = true; GridView1.Visible = true; projectHeader.Text = projectsDb.Get(Convert.ToInt32(Request.QueryString["Id"])).Title; } else { DeleteButton.Visible = false; GridView1.Visible = false; projectHeader.Text = "<< " + GetLocalResourceObject("SelectProject").ToString(); } }