打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
App_Code razor cshtml support HtmlHelper methods
May 15th Update: One issue that a few people havepointed out is that when a @helper is saved within the \app_codedirectory, you don’t by default get access to the ASP.NET MVC Htmlhelper methods within it (e.g. Html.ActionLink(), Html.TextBox(), etc). You do get access to the built-in HTML helper methods whenthey are defined in the same file as your views.  This is not supportedout of the box, though, when the helpers are within the \app_codedirectory - we’ll add this in the next release.  Paul Stovall has a nicehelper class that you can use in the meantime to access and use thebuilt-in Html helper methods within @helper methods you define in the\app_code directory.  You can learn how to use it here.
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
ASP.NET MVC 3和Razor中的@helper 语法
ASP.NET MVC中几个运用技巧
玩转Asp.net MVC 的八个扩展点(上)
Asp.net MVC 视图之公用代码dd
ASP.NET MVC
无废话MVC入门教程三[路由设置及视图入门]
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服