Please see: https://github.com/kevinSuttle/html-meta-tags, thanks for the idea @dandv!
Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/
public class CustomerController : Controller | |
{ | |
public ViewResult Index() | |
{ | |
return View(); | |
} | |
public ViewResult Edit() | |
{ | |
var existingCustomer = new Customer(); |
========================= | |
Based on the Simple Time Picker Modelbinder by Sergi Papseit Valls | |
http://www.sharpedgesoftware.com/Blog/2011/06/08/simple-time-picker-model-binder-for-aspnet-mvc-3-and-how-to-save-it-to-sql-ce-4-using-ef-41 | |
========================= | |
I tried the modelbinder above but found a few issues with it including not being able to deal with blank options or partially filled out TimeSpans. This is my current version of it (it is a bit messy I warn you). | |
This is designed to bind to nullable TimeSpans, I haven't tried it with non-nullable ones, but you can overcome this by adding a [Required] attribute. The features are: |
(function ($) { | |
$.fn.serialize = function (options) { | |
return $.param(this.serializeArray(options)); | |
}; | |
$.fn.serializeArray = function (options) { | |
var o = $.extend({ | |
checkboxesAsBools: false | |
}, options || {}); |