2

I have a Form and a CountDown Timer .I have some problems :

  1. How can I display a CountDown Timer as : Hour : Minute : Second in asp.net mvc . When CountDown Timer (Hour=00 , Minute=00 , Second=00) , Form auto submit data.
  2. I have a Table in SQL with 2 columns : Name (nvarchar(250)) ; Minute (int). How can I load column Minute to CountDown Timer from SQL?

Hope , Everyone can help me! Thanks

1
  • the answers in this question may help. Commented Apr 5, 2011 at 11:24

1 Answer 1

3

You could use a jquery plugin for this. There are many out there. Here's one you could use. It has callbacks like for example onExpiry which is triggered when the timer reaches zero so that you could submit the form.

Sign up to request clarification or add additional context in comments.

7 Comments

Thank!How can I load column Minute in SQL to CountDown Timer?. I am using ASP.NET MVC 3
@quantt, what data access technology are you using?
@Darin Dimitrov: I am using LINQ TO SQL
@quantt, you could have the controller action query a repository which will return the corresponding value from the database (using Linq to SQL) and then pass this value to the view.
@DarinDimitrov Because it is running on client side, Is it possible that user can hack it and stop the Timer.?
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.