asp.net-mvc – Editor为int选择一个字符串模板
发布时间:2020-12-16 00:21:56 所属栏目:asp.Net 来源:网络整理
导读:我有两个EditorTemplates string.cshtmlint.cshtml 当我编写EditorFor一个字符串或一个int时,他们都选择string.cshtml 当我甚至删除string.cshtml时,EditorFor for int不要选择int.cshtml 解决方法 EditorTemplates使用CLR typenames,而不是C#关键字。 您
我有两个EditorTemplates
string.cshtml int.cshtml 当我编写EditorFor一个字符串或一个int时,他们都选择string.cshtml 当我甚至删除string.cshtml时,EditorFor for int不要选择int.cshtml 解决方法
EditorTemplates使用CLR typenames,而不是C#关键字。 您需要创建Int32.cshtml。
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- asp.net-mvc – 在MVC的路由中,花括号是什么意思?
- 只能访问localhost上的asp.net应用程序
- asp.net – 如何使用WebApi将POSTHttpRoute POST到自定义操
- 是否可以还原ASP.NET预编译?
- 为什么我应该或不应该将数据集,数据表等作为会话变量存储在
- 从经典ASP检测移动用户代理并在会话启动时重定向
- .net – MultipartFormDataStreamProvider vs HttpContext.
- asp.net-mvc-3 – 将数据从Action传递给另一个Action
- asp现场抽奖,asp微信现场抽奖功能代码
- asp.net-mvc-2 – ASP.NET MVC SiteMap
推荐文章
站长推荐
- asp.net – NHibernate – ManagedWebSessionCon
- asp.net-mvc – ASP.NET MVC请求过滤器
- 如何在ASP.NET和WCF之间对用户进行身份验证?
- asp.net-mvc – 运行Asp.Net Mvc作为OWIN中间件?
- 有没有办法为ASP.Net Web应用程序安装程序创建补
- System.Net.ServicePointManager.DefaultConnect
- asp.net-mvc – 在REST Web API调用中返回复杂对
- asp.net – 回滚请求身体流
- asp.net-mvc – 使用实体框架4.1创建复合主键
- asp.net web api定义的b/s调用方法一例
热点阅读