private bool Bindtry() { DataSet ds = res.GetAllResStuBYTutorID(tutorid); pgSource.DataSource = ds.Tables[0].DefaultView; if (pgSource.DataSource != null) { pgSource.AllowPaging = true; pgSource.PageSize = pagesize; pgSource.CurrentPageIndex = 0; //Session["pgSource"] = pgSource; return(true); } return(false); }