/// BindCustomerGridView method // calls data layer to fetch customers & binds that to GridView private dsProgramaholics BindUserGridView() { // new path string tempPath = Server.MapPath("~/Programaholics.mdb"); clsDataLayer myDataLayer = new clsDataLayer(tempPath); // where the database is myBusinessLayer = new clsBusinessLayer(Server.MapPath("~/App_Data/")); // get all customers dsProgramaholics userListing = (dsProgramaholics)myBusinessLayer.GetPersonalStats(); // customer list's source is the table from the database gvStats.DataSource = userListing.tblUsers; // bind data to gridView & cache gvStats.DataBind(); Cache.Insert("UserDataSet", userListing); // return cache return(userListing); }