asp.net-mvc – Editor为int选择一个字符串模板
发布时间:2020-05-28 02:18:41 所属栏目:asp.Net 来源:互联网
导读:我有两个EditorTemplates string.cshtmlint.cshtml 当我编写EditorFor一个字符串或一个int时,他们都选择string.cshtml 当我甚至删除string.cshtml时,EditorFor for int不要选择int.cshtml EditorTemplates使用CLR typenames,而不是C#关键字。 您需要创建In
|
我有两个EditorTemplates string.cshtml int.cshtml 当我编写EditorFor一个字符串或一个int时,他们都选择string.cshtml 当我甚至删除string.cshtml时,EditorFor for int不要选择int.cshtml 解决方法EditorTemplates使用CLR typenames,而不是C#关键字。 您需要创建Int32.cshtml。(编辑:安卓应用网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- asp.net – 是否由子控件继承了EnableViewState属性?
- asp.net-mvc – ASP.NET MVC – 无法绑定数组以查看模型
- 服务层和ASP.NET MVC的目的2
- asp.net-mvc – 自定义模型绑定,模型状态和数据注释
- ASP.NET服务与存储库层
- asp.net – 如何通过代码显示无
- 为什么我的ASP.NET项目不会在启动项目中运行在开发服务器上
- asp.net-mvc – 具有Knockout和Web API的ASP.NET MVC:是否
- asp.net – 总是显示FooterTemplate,甚至没有数据
- asp.net – Windows Workflow Foundation 4的状态机或流程图
推荐文章
站长推荐
- .net – asp:GridView文本框始终返回空值
- asp.net-mvc – ASP.NET MVC中的Page.EnableSess
- ASP.NET:Viewstate并以编程方式添加用户控件
- 从动态添加的文本框中获取值asp.net c#
- 如何在page_Load函数中设置的asp.net中显示变量值
- asp.net – SignalR不能与.Net Core一起使用
- ASP.NET:压缩ViewState
- asp.net-mvc-4 – Quartz.NET触发器不会触发,MVC
- ASP.NET MVC3中的HTML反而不是JSON的IIS响应
- .net – 只有在配置中enableSessionState设置为t
热点阅读
