private void BindPGSourse(int type) { DataSet ds = res.GetAllTutorAndStu(type); respgSource = new PagedDataSource(); respgSource.DataSource = ds.Tables[0].DefaultView; respgSource.AllowPaging = true; respgSource.PageSize = pagesize; respgSource.CurrentPageIndex = 0; Session["respgSource"] = respgSource; }