protected void Page_Load(object sender, EventArgs e) { if ((string)Session["allow"] == "1") { addActorButton.Visible = true; } if (Request["oid"] != null) { DataList1.DataSource = Actors.GetAllActorsOrdered(Request["oid"]); } else { DataList1.DataSource = Actors.GetAllActors(); } DataList1.DataBind(); }