Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to add pagging in data list control,

i thing it is very easy, but my need is i want pagging, on scroll of datalist,

it means one's the page load,data list show only 10 record and then if user scroll down , then next 10 will show, and then next.. and so on.......


i find a demo for this,

http://www.aspsnippets.com/Articles/Load-on-demand-data-in-GridView-on-scroll-using-ASPNet-and-jQuery-AJAX.aspx

but it uses GridView pagging, but i want datalist pagging,


I use linq for data base connectivity, but if your solution in ado.net then it will also very help full for me,

so please help me
Posted
Updated 9-May-13 19:12pm
v3
Comments
ZurdoDev 10-May-13 8:32am    
Where are you stuck? If the code is for a gridview, learn it and understand it and then you should be able to apply it to a datalist.
Arun kumar Gauttam 11-May-13 0:58am    
ok i use his code for datalist pagging also,

code work fine when we bind datalist in simple way,but if we bound data at "onitemdatabound"

its not show that data which we bound at i "onitemdatabound" and the resion is code initially bound 10 record and after this when we scroll down then web service is call and next data of data list is bound using java script,

so problem is after scroll itemdatabound is not call,
Sunasara Imdadhusen 21-May-13 3:59am    
What is your error?
Arun kumar Gauttam 23-May-13 1:17am    
so problem is after scroll itemdatabound is not call,

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