摘要:
Open the Movie.cs file. The System.ComponentModel.DataAnnotations namespace provides formatting attributes in addition to the built-in set of validation attributes. You'll apply the DisplayFormat attribute and a DataType enumeration value to the release date and to the price fields. The followin 阅读全文
摘要:
@using (Html.BeginForm()){ <p>销售状态: @Html.DropDownList("Status", "All") <input type="submit" value="Filter" /></p> } public ActionResult Index(string status) { ViewBag.Status = PowerCar.DB.Enums.MerchandiseStatus.StatusList; String 阅读全文