@Html.DropDownListFor(model => model.ZipFile, new SelectList(ViewBag.ZipFiles))
Đoạn mã trên tạo cho tôi danh sách lựa chọn tốt. Nhưng tôi muốn thực hiện lựa chọn tùy chọn. Rất tiếc, không có tùy chọn trống và tôi muốn thêm một tùy chọn. Tôi sẽ làm như thế nào?@ Html.DropDownListFor Cách thêm tùy chọn?
Xem hướng dẫn DDL tôi http://www.asp.net/mvc/tutorials/javascript/working-with-the-dropdownlist-box-and- jquery/using-the-dropdownlist-helper-với-aspnet-mvc và http://blogs.msdn.com/b/rickandy/archive/2012/01/09/cascasding-dropdownlist-in-asp-net-mvc. aspx – RickAndMSFT