Where can I find tutorials on how exactly get this to work?
I am trying to have @helper in App_code directory of my MVC3 app, so far when I try to use them in other razor pages, they cannot be found.
You need to call the helpers as static methods of the page name.
For example, if you have a helper named HelpMe
in App_Code/MyHelpers.cshtml
, you would write
@MyHelpers.HelpMe(...)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With