Datalist paging with linq
I'm creating a page that uses Linqfor data access and I'm using DataList to display data. How can I use Linq to do data paging ? Please read simple code below : I normally use a PagedDatasource but this only seems to work with a DataTable. Here's my Linq to return Datatable which is bound with Datalist : Public Shared Function GetStudentList() As DataTable Dim db As New DemoDataClassesDataContext() Dim query = From st In db.students _ Order By st.st_studentid Ascending _ Select st Dim dtStudent = New DataTable("myst") dtStudent.Columns.Add("st_id", GetType(Integer)) dtStudent.Columns.Add("st