Wednesday, April 20, 2011

Paged listview - Set Active Page

I have a listview that displays products. I have a datapager associated with the listview. I control the visibilty/population of product details by a query string value "prodID". I need to make sure that the right page is active when the page is loaded. So if prodID 10 exists on page 2 in the listview, then page 2 will be the active page when navigating to the URL (with prodID in the query string). prodID is a datakey in the listview.

From stackoverflow
  • pgProducts.SetPageProperties(itemIndex, pgProducts.PageSize, false);

0 comments:

Post a Comment

Note: Only a member of this blog may post a comment.