Click here to Skip to main content
16,013,322 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello sir/mam,
I want to set paging through datapgaer control with DataList control.
but an error is display..


I sent you error message..


Control 'DListEmp' does not implement IPageableItemContainer.

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.InvalidOperationException: Control 'DListEmp' does not implement IPageableItemContainer.

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:


[InvalidOperationException: Control 'DListEmp' does not implement IPageableItemContainer.]
System.Web.UI.WebControls.DataPager.FindPageableItemContainer() +406907
System.Web.UI.WebControls.DataPager.OnInit(EventArgs e) +37
System.Web.UI.Control.InitRecursive(Control namingContainer) +140
System.Web.UI.Control.InitRecursive(Control namingContainer) +311
System.Web.UI.Control.InitRecursive(Control namingContainer) +311
System.Web.UI.Control.InitRecursive(Control namingContainer) +311
System.Web.UI.Control.InitRecursive(Control namingContainer) +311
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +480

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1



please help me...


Rakesh Tailor
rakesh10tailor@gmail.com
Posted

1 solution

Hi ,
you should read this article it will help you
http://www.c-sharpcorner.com/uploadfile/rizwan328/datalist-custom-paging-in-Asp-Net-using-C-Sharp/[^]
Best Regards
M.Mitwalli
 
Share this answer
 
Comments
Rakesh Tailor 5-Apr-12 4:05am    
Sir I am already used this code(your link).
But I want to use paging with Datapager Control of asp.net
Mohamed Mitwalli 5-Apr-12 5:22am    
unfortunately DataPager is Only implemented only for list view till now
Well see this link
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.ipageableitemcontainer.aspx

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900