Click here to Skip to main content
11,924,707 members (46,646 online)
Rate this:
Please Sign up or sign in to vote.
See more: ASP.NET MVC4
Hi All.

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

I need to build a Timer in 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 24-Dec-12 3:51am
Sanjay Patel 24-Dec-12 9:00am
u have to use java Script or jQuery for do that no any other option

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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:[^]

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.151125.3 | Last Updated 24 Dec 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100