相关疑难解决方法(0)

HtmlHelper NameFor方法

是否有一个Html.NameFor功能,它获取name模型项的html属性?

我想在我的Razor视图中使用以下代码:

<input type="text" value="@Model.User.Email" name="@Html.NameFor(x => x.User.Email)">
Run Code Online (Sandbox Code Playgroud)

asp.net-mvc html-helper razor

11
推荐指数
2
解决办法
5459
查看次数

标签 统计

asp.net-mvc ×1

html-helper ×1

razor ×1