AspdotnetCodes.com
Search
Articles
Books
Resources
Asp.Net News
Downloads
Free Tech Magazines
Asp.Net Web Hosting
Archives
Softwares
Newsletter
Suggest Us
Link to Us
Feeds Subscription
Articles
Questions & Answers
Tips & Tricks
 The GridView 'grvProvinces' fired event PageIndexChanging which wasn't handled.
Posted by songuku on  11/18/2010 12:08:54 AM Category: ADO.NET
Add to my favorites
Email to friend
Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[HttpException (0x80004005): The GridView 'grvProvinces' fired event PageIndexChanging which wasn't handled.]
System.Web.UI.WebControls.GridView.OnPageIndexChanging(GridViewPageEventArgs e) +1325546
System.Web.UI.WebControls.GridView.HandlePage(Int32 newPage) +86
System.Web.UI.WebControls.GridView.HandleEvent(EventArgs e, Boolean causesValidation, String validationGroup) +464
System.Web.UI.WebControls.GridView.RaisePostBackEvent(String eventArgument) +207
System.Web.UI.WebControls.GridView.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +175
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565

Post Your Reply Post New Question

 Viewer's Reply
Handling PageIndexChanging Event
Answered By Moderator1 on 11/18/2010 8:05:55 AM
Hi,

You need to handle PageIndexChaning Event for the GridView control. Follow the below syntax,

protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
{

}
 
gridview paging
Answered By songuku on 11/18/2010 11:39:28 PM
Hi ! can you help me ?
 
gridview paging
Answered By songuku on 11/19/2010 12:00:45 AM
can you send to me source code about gridview paging ? thank
 
Post Your Reply If you still have problem, post it again under this reply for better response.

 
Sponsored by
The ASP.NET 2.0 Anthology: 101 Essential Tips, Tricks & Hacks - Free 156 Page Preview
Easing the Migration to Microsoft SQL Server 2005
The PHP Anthology: 101 Essential Tips, Tricks & Hacks, 2nd Edition - Free 207 Page Preview!