protected void Page_Load(object sender, EventArgs e) { if (Session["user"] == null) { Response.Redirect("/WebForms/AdminLogin.aspx"); } else { ApplicationsGridView.DataSource = SQLDataAccess.GetApplications(); ApplicationsGridView.DataBind(); } }
protected void Page_Load(object sender, EventArgs e) { apps = RemoteApplication.GetApplications(); ApplicationsGridView.DataSource = apps; ApplicationsGridView.DataBind(); }