多项选择题
在ASP.NET MVC中,强类型使用的语法正确的是?()
A.@model 模型对象(集合)
B.@model Demo.Models.Product
C.@model IEnumerable< Demo.Models.Product>
D.以上都不对
点击查看答案
相关考题
-
单项选择题
MVC中BeginForm添加样式的写法正确的是?()
A.Html.BeginForm("actionName","controllerName",FormMethod.POST,new{class="className"})
B.Html.BeginForm("actionName","controllerName",FormMethod.POST,new{@style="className"})
C.Html.BeginForm("actionName","controllerName",FormMethod.POST,new{@class="className"})
D.以上都对 -
多项选择题
MVC中BeginFormd的常用形式如下,Html.BeginForm(actionName,controllerName,method,htmlAttributes){},以下四种说法,正确的有?()
A.actionName:操作方法的名称,System.String
B.controllerName:控制器的名称,System.String
C.method:用于处理窗体的HTTP 方法(GET 或POST),System.Web.Mvc.FormMethod
D.htmlAttributes:一个对象,其中包含要为该元素设置的HTML 特性,System.Object -
单项选择题
在ASP.NET MVC中,模型注解验证中,显示报错信息“商品名字不能为空”,哪个写法正确?()
A.Error="商品名字不能为空"
B.Message="商品名字不能为空"
C.Display="商品名字不能为空"
D.ErrorMessage="商品名字不能为空"
