DataList Page change Event

Hi,

As the DataList page changes I want to perform an action is that possible?

Pete

You might need to use LoadData to bind the DataList in this case:

Thanks for the quick reply, LoadData is what I needed

Pete

Hi,

is there a way to set the datalist current page back to 1? I have two datalists both with paging, when the first one changes (page) the second one updates correctly but the current page remains highlighted from the previous record

thanks
Pete

You can use GoToPage() method:

thanks for reply, when I try this I get null exception on the datalist object, any ideas what I am doing wrong? See screen shots below


image