Click here to Skip to main content
15,894,343 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All.

Have been browsing the net for some time now, with no luck.

I need to build a Timer in Asp.net MVC4 that runs client side. Also will need to have the start and stop times saved to a sql compact 4 database.

so on start a variable will hold a time.
- Time elapses -
on stop timer will hold another time.
- Send times to database -

need to send to the data database to work out the total time elapsed.

My variable currently are of DateTime Type.


Thanks in Advanced.
Posted
Comments
Sanjay Patel 24-Dec-12 9:00am    
u have to use java Script or jQuery for do that no any other option

1 solution

As Sanjay said, you will have to use a javascript/ jQuery. I have created a high level implementation of what you need. You will have to finish it up! Have a look at this fiddle:

http://jsfiddle.net/SKYup/[^]
 
Share this answer
 
v2

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