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?