PDA

View Full Version : سوال: مشکل پیجینگ مایکروسافت



neynavaz
سه شنبه 23 آذر 1389, 09:39 صبح
دوستان من از پیجینگ گرید مایکروسافت استفاده کردم
اما هم مشکل داره
هم اینکه واسم سوال پیش اومده که آیا این پیجینگ مناسب هست
یا سرعت رو کم میکنه؟

مشکلشم اینه وقتی روی صفحات (شماره صفحات پیجینگ کلیک میکنم این ارور رو میده


Server Error in '/' Application.

The GridView 'grd_msg' fired event PageIndexChanging which wasn't handled.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: The GridView 'grd_msg' fired event PageIndexChanging which wasn't handled.

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 'grd_msg' fired event PageIndexChanging which wasn't handled.]
System.Web.UI.WebControls.GridView.OnPageIndexChan ging(GridViewPageEventArgs e) +1323002
System.Web.UI.WebControls.GridView.HandlePage(Int3 2 newPage) +86
System.Web.UI.WebControls.GridView.HandleEvent(Eve ntArgs e, Boolean causesValidation, String validationGroup) +464
System.Web.UI.WebControls.GridView.RaisePostBackEv ent(String eventArgument) +207
System.Web.UI.WebControls.GridView.System.Web.UI.I PostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData) +175
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565

Version Information: Microsoft .NET Framework Version:2.0.50727.4952; ASP.NET Version:2.0.50727.4955

z_software
سه شنبه 23 آذر 1389, 13:51 عصر
فکر کنم باید بری تو رویداد PageIndexChanging گرید و کد زیر را بنویسی :

GridView.PageIndex = e.NewPageIndexو بعد همون جا گرید را دوباره Fill کنی .