A.System.ComponentModel.DataAnnotationsB.System.ComponentModelC.System.Data_Layout.cshtmlD.System.ComponentModel.Data
单项选择题MVC的Razor视图中,使用()来存储从控制器传过来的泛型集合的,且类型变成了Ienumerable。
A.@modelB.@ModelC.@ViewD.@Controller
单项选择题MVC中,StringLength特性可以实现()验证。
A.比较B.非空C.正则D.字符串长度限制
单项选择题MVC中,Range特性可以实现()验证。
A.比较B.非空C.正则D.范围
单项选择题MVC中,Compare特性实现()验证。
单项选择题MVC中,需要哪个引入命名空间才能在模型类上要加验证特性?()
单项选择题在MVC中,下列哪个辅助方法返回一个字符串,其中包含验证消息的未排序列表(ul元素),即验证总结。()
A.Html.ValidationSummary()B.Html.TextBox()C.Html.Lable()D.Html.DisplayName()
单项选择题MVC模型验证中,限制用户输入用户名字符串长度应使用()
A.Compare特性B.Range特性C.StringLength特性D.Display特性
单项选择题MVC模型验证中,限制输入年龄范围应使用()
单项选择题MVC模型验证中,比较两次密码是否一致应使用()
单项选择题mvc中模型验证中,可以限制字符长度的特性的是什么?()
A.Display特性B.Required特性C.StringLength特性D.RegularExpression特性