Solved

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

Posted on 2009-04-02
5
1,418 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

705 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