Solved

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

Posted on 2009-04-02
5
1,413 Views
Last Modified: 2012-05-06
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
0
Comment
Question by:dotsandcoms
  • 3
  • 2
5 Comments
 
LVL 28

Expert Comment

by:sybe
ID: 24050244
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
 
LVL 28

Expert Comment

by:sybe
ID: 24050285
0
 

Author Comment

by:dotsandcoms
ID: 24056654
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
 
LVL 28

Expert Comment

by:sybe
ID: 24057013
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
 

Accepted Solution

by:
dotsandcoms earned 0 total points
ID: 24173632
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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now