How to force ListView to show first page programmatically
Posted
by doekman
on Stack Overflow
See other posts from Stack Overflow
or by doekman
Published on 2010-05-17T13:37:31Z
Indexed on
2010/05/17
13:40 UTC
Read the original article
Hit count: 167
I have a paged ASP.NET ListView. The data shown is filtered, which can be controlled by a form. When the filter form changes, I create a new query, and perform a DataBind.
The problem however, when I go to the next page, and set a filter, the ListView shows "No data was returned". That is not weird, because after the filter is applied, there is only one page of data.
So what I want to do is reset the pager. Is that a correct solution to the problem? And how do I do that?
© Stack Overflow or respective owner