我想为DateTime创建一个编辑器模板。包含3个文本框的字段,分别表示日、月、年。目前我的EditorTemplates/Date.cshtml如下所示: new { @class = "day-box", title = "day", min = "1", max = "31", type = "
有方法将数据绑定到类成员吗?下面是一个例子{ public string Description {get; set;}{ public string Description {get; set;}}
public ActionResult Create(Class B)现在我想在View页面中创建一个B类对象