How to add delay in ASP.Net / Ajax CallBack function ?

Hello,
We are developing a site where a customer can come and browse products.
We do not want a standard paging, but we want a slider type and Next and Preview like paging. We have implemented this using ASP.Net and Ajax. But now we want when a product scrolling do automatically on mouse over of Next and Previous buttons. We also implemented this by using onmouseover and callback functions.
But we cannot get desire result, we a soft scrollinng.
How can we do this ?
Preview Link :
http://www.dotcompreview.com/alwaleedoptics.com/cproductlisting.aspx

We have attached design and cs files.

Is there any other way to do it ?

Thanks in advance.

cproductlisting.aspx.txt
cproductlisting.aspx.cs.txt
dotsandcomsAsked:
Who is Participating?
 
dotsandcomsConnect With a Mentor Author Commented:
I got Solution by using DataList and Javascript.
Please see attached File.
js2.js.txt
productCatalog.aspx.cs.txt
productCatalog.aspx.txt
scroll.js.txt
0
 
sybeCommented:
Put *all* results in a broad scrollable div (which is only partially displayed). Attach some javascript to the buttons and the slider, which make the div scroll in response.
0
 
dotsandcomsAuthor Commented:
By adding all the result at a time will take time to load page, considering that we will have around 150 products to display.

Will it be possible with DataList ?
0
 
sybeCommented:
150 in one view? Because the current views shows about 40 items, which seems doable.

Delaying a javascript call can be done with the javascript setTimeout() function.
http://www.w3schools.com/js/js_timing.asp
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.