Custom datepicker html helper for mvc4 using Razor

2019-07-30 04:11发布

问题:

Are there any tutorial for datepicker control for mvc4 using razor view . I went through the below mentioned link but sadly it uses aspx instead of razor.

http://www.codesprouts.com/post/Creating-A-DatePicker-Extension-In-ASPNet-MVC.aspx

Could any one please help me in creating datepicker control html helper using razor view.

The main problem is being that i have to get the date picker control in IE8 browser and sadly Jquery Datepicker control doesnt seem to be working in IE8 browser, i tried with several versions of Jquery Library as well. Because of this reason i wanted to build my own custom datepicker html helper . Please suggest some solution

回答1:

Look here:

  • http://dotnetfever.com/using-jquery-ui-datepicker-in-mvc-4/

This might be helpful as well:

  • Very basic jquery datepicker in Razor
  • http://www.dreamincode.net/forums/topic/288405-using-jquery-datepicker-with-mvc3-and-razor/
  • http://www.codeproject.com/Articles/344292/ASP-NET-MVC3-Razor-With-jQuery-For-Beginners