c# - How to create a Countdown (javascript ?) in Razor? -


i trying create auction site asp.net mvc using on razor, want create countdown on list of bid items. how put countdown in list? has got idea, these dates types must included. model segment took auction model.

[required]         [display(name = "auction start time")]         [datatype(datatype.date)]         [displayformat(dataformatstring = "{0:yyyy-mm-dd}", applyformatineditmode = true)]         public datetime starttime { get; set; }          [required]         [display(name = "auction end time")]         [datatype(datatype.date)]         [displayformat(dataformatstring = "{0:yyyy-mm-dd}", applyformatineditmode = true)]         public datetime endtime { get; set; } 

i using asp.net mvc entity framework generate views..(i new asp.net mvc entity framework) . please if body know answer, let me know.. thank you.

you need use javascript or javascript based library so, otherwise need refresh view every second not want. need have javascript function going populating time element according personal preference.

you can have @ of existing plugins, have chosen jquery one, there other plugins.


Comments

Popular posts from this blog

php - Permission denied. Laravel linux server -

google bigquery - Delta between query execution time and Java query call to finish -

python - Pandas two dataframes multiplication? -