Click here to Skip to main content
15,890,506 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi I want to add Content dynamically on the ASP.NET webpage on scrolling using jquery. Basically it is a Datalist control currently which is showing data and also several command buttons for each item.
So to remove paging and improve User experience I am trying make its content dynamic by adding content on scroll but major issue is how to do this for datalist or in case if I convert it some plain HTML control then how to handle events of buttons associated to each item.

I have searched alot but didnt got a single solution explaining content added having server side control.

Any help is highly appreciated!! AM I missing something or it is something impossible?? Not getting any answer :(
Posted
Updated 18-Jun-12 18:46pm
v4
Comments
Karthik. A 16-Jun-12 17:37pm    
Check out this link. Guess you are expecting to get something like this - http://forrst.com/posts/Detect_scroll_at_bottom_with_jQuery_Endless_scr-hEA
[no name] 17-Jun-12 5:51am    
HI Karthik,
I am able to fetch content using jquery on scroll but main issue I am facing is my Content has server controls and I need to bind events based on it. Currently it is a datalist through which I am doing all task how to manage it while appending content through JQuery.

Thanks!

as suggested use div - scroll with jquery and on scroll get more data from server using jquery ajax. try searching how facebook works... as notifications are loding on scroll.

it is not impossible !!!
 
Share this answer
 
Hi friends,

Display GridView in Div, and set in div properties id and display style: to scroll ,then Give the ID of the div to Jquery function. Automatically it will display scrolls when the size of the gridview is more than the width and height of the Div. and set the width and height of the div also.
 
Share this answer
 
v2

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