jQuery Datetime picker MVC3

后端 未结 4 1999
长发绾君心
长发绾君心 2021-01-12 12:36

I have in my Model this field

[DataType(DataType.DateTime)]
    [Required(ErrorMessage = \"Expire is required\")]
    public DateTime Expire
    {
      get;         


        
4条回答
  •  无人及你
    2021-01-12 13:01

    Try one of the following:

    • If the action is for creating a new object pass a new instance as model, e.g. return View(new MyObject())
    • Change @inherits System.Web.Mvc.WebViewPage to @inherits System.Web.Mvc.WebViewPage

提交回复
热议问题