【发布时间】:2023-02-15 21:48:23
【问题描述】:
我在 asp.net mvc 中的 script 标签内有一个 Kendo Html.Kendo().ComboBox()。
var input = '@(Html.Kendo().ComboBox()
.Name(Html.NameFor(model => model.AttributeUnitValue).ToString())
.DataTextField("Description")
.DataValueField("CodeLovId")
.DataSource(datasource => datasource
.Read(read => read
.Action("GetCodesList", "LookupCode", new { area = "Core", codeType = unitCodeType, selectedValue = minAccValue })
.Type(HttpVerbs.Post)
)
).HtmlAttributes(new { style = "width:50%" }))'
在这个输入控件之外,我有两个变量unitCodeType 和minAccValue,我无法在给定代码的Action() 中访问它们。他们显示错误。请检查下面的屏幕截图
我怎样才能解决这个问题 ?
【问题讨论】:
标签: asp.net-mvc kendo-ui