Not access ActionLink & other integerated HtmlHelprs inDeclarative Html Helper

Topics: ASP.NET MVC
Mar 8, 2015 at 11:41 AM
Edited Mar 8, 2015 at 11:43 AM
In Declaraticve Html Helpers that place in App_Code folder, there 's no direct access into integerated HtmlHelpers methods like ActionLink and so on.

Please make direct access to those extension methods in next version.
Thanks
Coordinator
Mar 9, 2015 at 6:08 PM
Hi atoma,

You are correct that helpers written in Razor @helpers in the App_Code folder do not support calling MVC HTML Helpers.

In MVC 6 we haven't yet implemented a helper feature like that, but we instead have a new feature called Tag Helpers. See here for more info on Tag Helpers: http://www.jeffreyfritz.com/2014/11/get-started-with-asp-net-mvc-taghelpers/

Thanks,
Eilon