我DropDownList
在我的 MVC 应用程序中使用 a 。加载页面时出现问题:.html 源代码中显示错误消息DropDownList
。
请看这张图片:
该字段已设置为允许在 DB 中为空,并且
using System.Web;
using Nop.Web.Framework;
using Nop.Web.Framework.Mvc;
using Nop.Web.Validators.Customer;
namespace Nop.Web.Models.Customer
{
public class FileUploadModel : BaseNopEntityModel
{
public CustomerNavigationModel NavigationModel { get; set; }
public string ControlID { get; set; }
public int? EventID { get; set; }
public IEnumerable<System.Web.Mvc.SelectListItem> Events { get; set; }
public string SpeakerFile { get; set; }
public string FirmFile { get; set; }
public string LogoFile { get; set; }
public string PresentFile { get; set; }
public string Present2File { get; set; }
public string SpeakerFileUrl { get; set; }
public string FirmFileUrl { get; set; }
public string LogoFileUrl { get; set; }
public string PresentFileUrl { get; set; }
public string Present2FileUrl { get; set; }
public string SpeakerSubmit { get; set; }
public string FirmSubmit { get; set; }
public string LogoSubmit { get; set; }
public string PresentSubmit { get; set; }
public string Present2Submit { get; set; }
}
}
在模型中。