简体   繁体   中英

PageIndexChanging which wasn't handled

I have set up EnableSortingAndPagingCallbacks="True" for a gridview and I don't have any template columns.

Paging works fine on all browsers without any errors but only few users ( not all IE8 users) of IE8 reported PageIndexChanging which wasn't handled error. Is it option settings issue on their browsers?

Thanks

Try to set OnPageIndexChanging event handler of your grid view like this

protected void gridView_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
   gridView.PageIndex = e.NewPageIndex;
   gridView.DataBind();
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM