tags:

views:

9

answers:

1

There is dropdown and datapager in my page. On the event of dropdown data is being populated in listview.Since there is datapager in my page user can jump from one page to another. That's fine.

But my question is that if currently the user in second page and if user selection from dropdown then datapager jump to the first page.

How to do this?

A: 

The DataPager class has a cryptically named method called SetPageProperties. You can use this to reset the page number. e.g. pager.SetPageProperties( 0, pager.PageSize, true ).

Kamyar