I have a page with a listview control and a datapager control. The listviews data source is set programmatically using this code:
Dim dal as new dalDataContext
Dim bookmarks = From data In dal.getData (userid)
listview1.DataSource = bookmarks
listview1.DataBind ()
When I test this page in a browser, it encounters an error: "ListView with identifier" listview1 "must have a data source that either implements ICollection or can swap the data source if AllowPaging is true."
How can I implement swap in this scenario?
thanks
source
share