September 2016
Beginner to intermediate
186 pages
3h 28m
English
The simplest way to create a helper in ASP.NET MVC used to be the @helper directive. Unfortunately, the @helper directive was removed from the new ASP.NET MVC Core, since it imposed too many restrictions on the other Razor features.
Fortunately, we're still able to create an HTML Helper using static method by completing the following steps:
Helpers inside the root folder of your project.Enums.cs. This file will contain all the enumerators for our project.Enums.cs file: public class Enums { public enum ButtonStyle { Default, Primary, Secondary, Success, ...Read now
Unlock full access