@helper in Custom Files

This public forum is for user-to-user discussions of ASP.NET Maker. Note that this is not support forum.
Post Reply
Andros
User
Posts: 111

@helper in Custom Files

Post by Andros »

Hi, in my Custom File I need to write some reusable code.
In Asp Net Web Pages I used @helper syntax, but now it tells to me that "the helper directive is not supported", because we're using asp net core now.
For example if I have the following "old style" helper to create form labels:

@helper QFormLabel(string pFor,string pCaption,string pClass, bool pRequired) {
@<label for="@pFor" class="@pClass">@pCaption></label>
}

how can I convert it in my custom file?


MichaelG
User
Posts: 1111

Post by MichaelG »

You can google for "ASP.NET Core @helper" and you should be able to find some workaround.


Post Reply