protected void Page_Load(object sender, EventArgs e) { if (Session["admin"] == null) { Response.Redirect("~/admin/admin_login.aspx"); } else { adminBL admin = new adminBL(); Label1.Text = admin.shipCount().ToString(); GridView1.DataSource = admin.bookAmounts(); GridView1.DataBind(); Label4.Text = admin.bookAmountsCount().ToString(); Label5.Text = admin.memCount().ToString(); } }