Click here to Skip to main content
15,910,603 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
VB
Error   2   'ASP.default_aspx' does not contain a definition for 'OnPaging' and no extension method 'OnPaging' accepting a first argument of type 'ASP.default_aspx' could be found (are you missing a using directive or an assembly reference?)   C:\Users\Ashwini\Desktop\WebSite13\Default.aspx 20
Posted
Comments
JoCodes 21-Jan-14 4:11am    
Can you share the Markup code ?

Means in your Default.aspx page a ServerControl has an event added but you dont have it in the Code behind. So add the "OnPaging" event in your code behind too.
 
Share this answer
 
Comments
Karthik_Mahalingam 21-Jan-14 4:12am    
5!we both posted at same time :)
JoCodes 21-Jan-14 4:14am    
Hey , Yes Karthik. Thanks. :)
In Your ASPX page for some control ( probably gridview ) you have mapped the event name as OnPaging

The event method is missing in the code behind file (aspx.cs).

Try to add a new event for OnPaging or map to the desired event in the code behind...
 
Share this answer
 
Comments
JoCodes 21-Jan-14 4:14am    
5!
Karthik_Mahalingam 21-Jan-14 4:19am    
Thanks JoCodes :)
ashwini dharamsale 21-Jan-14 4:36am    
how can i add that
Karthik_Mahalingam 21-Jan-14 4:42am    
post your code, we need to trace your problem

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