ASP.NET MVC 3 Model-binding and form fields

后端 未结 3 347
醉酒成梦
醉酒成梦 2020-12-31 18:05

I have an entity called Domain.Models.BlogPost which contains the following properties:

  • PostID
  • Title
  • Author
  • PostedDate<
3条回答
  •  孤城傲影
    2020-12-31 19:00

    Isn't there an overload on TextBox that takes a value? You could just pass string.Empty...

提交回复
热议问题