Click here to Skip to main content
15,905,148 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
i have web application in which i need to use timer.My application is shopping cart type.So as the user add item to cart timer should start. For the specific time period item will be in cart. As time expire, i need to clear cart.I don't have any idea about how to maintain timer through out website?

Any one have idea?
anybody can give me example how use it?
[no name] 12-Dec-12 7:02am    
any efforts so far ???
Kiran Susarla 12-Dec-12 7:04am    
Have you searched codeplex ( web site. Here you find good samples for shopping cart including source code.

Maintain a variable or hidden field that save the start time (client machine) when first time item is added, then write a javascript code to calculate time elapsed, here you can check your expiry time.
Share this answer
Have you ever thought about using UpdatePainel Timer with Ajax?
Or just use the timer straight from Ajax
Share this answer

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