D
Donald Adams
Hi,
I will have both web and win clients and would like to page my data. I
could not find out how the datagrid control does it's paging though I did
find some sample code that says they do it this way, but I can't see these
methods as public.
BookmarksDataSetTableAdapters.BookmarksTableAdapter bookTA = new
BookmarksDataSetTableAdapters.BookmarksTableAdapter();
BookmarkList1.DataSource = bookTA.GetAllBookmarksWrtUser(
User.Identity.Name, pageIndex, numRows, ref totalBookmarks);
TagDataSetTableAdapters.TagsTableAdapter tagTA = new
TagDataSetTableAdapters.TagsTableAdapter();
TagList1.DataSource = tagTA.GetPopularTags(DateTime.Now.AddDays(-30),
User.Identity.Name);
recentTagsList.DataSource = tagTA.GetRecentTags( DateTime.Now.AddDays(-30),
User.Identity.Name);
What library/methods can I use in .Net 2.0 to do paging of SQL data in a web
service?
Can I not just specify my select like when I create a SqlDataSource and have
a class wrap it and give me the paging and sorting abilities?
A code sample would be most helpful.
Thanks in advance,
Donald Adams
I will have both web and win clients and would like to page my data. I
could not find out how the datagrid control does it's paging though I did
find some sample code that says they do it this way, but I can't see these
methods as public.
BookmarksDataSetTableAdapters.BookmarksTableAdapter bookTA = new
BookmarksDataSetTableAdapters.BookmarksTableAdapter();
BookmarkList1.DataSource = bookTA.GetAllBookmarksWrtUser(
User.Identity.Name, pageIndex, numRows, ref totalBookmarks);
TagDataSetTableAdapters.TagsTableAdapter tagTA = new
TagDataSetTableAdapters.TagsTableAdapter();
TagList1.DataSource = tagTA.GetPopularTags(DateTime.Now.AddDays(-30),
User.Identity.Name);
recentTagsList.DataSource = tagTA.GetRecentTags( DateTime.Now.AddDays(-30),
User.Identity.Name);
What library/methods can I use in .Net 2.0 to do paging of SQL data in a web
service?
Can I not just specify my select like when I create a SqlDataSource and have
a class wrap it and give me the paging and sorting abilities?
A code sample would be most helpful.
Thanks in advance,
Donald Adams