'GridView1' fired event PageIndexChanging which wasn't handled
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am using a gridview and I want to use paging. I have already set allow paging to true and page size to 5. I can see the numbers at the base of my gridview, but when i click on a number to move to respective page, it throws an error saying: The GridView 'GridView1' fired event PageIndexChanging which wasn't handled. Code: <asp:GridView ID="GridView1" runat="server" CellPadding="5" AutoGenerateColumns="False" AllowPaging="True" DataKeyNames="contact_id" onrowcancelingedit="GridView1_RowCancelingEdit" onrowediting="GridView1_RowEditing"