Solved

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

Posted on 2009-04-02
5
1,415 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

820 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