You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
Can someone please tell me how the HtmlHelper class in Net Core MVC can be extended?
What I have tried is the following :-
Create HtmlHelper Static Class.
method :- public static string CreateDate(this HtmlHelper,String Message){}
method is not accessible from within the Razor view when i do:
Html.
the ViewImports does have the helper namespace in as well.
Kind Regards
The text was updated successfully, but these errors were encountered:
Eilon
added
the
area-mvc
Includes: MVC, Actions and Controllers, Localization, CORS, most templates
label
May 20, 2019
The injected HtmlHelper is an IHtmlHelper<T> instance. You should update the extension method to target this type: public static string CreateDate<TValue>(this IHtmlHelper<TValue,String Message){}
Hi,
Can someone please tell me how the HtmlHelper class in Net Core MVC can be extended?
What I have tried is the following :-
Create HtmlHelper Static Class.
method :- public static string CreateDate(this HtmlHelper,String Message){}
method is not accessible from within the Razor view when i do:
Html.
the ViewImports does have the helper namespace in as well.
Kind Regards
The text was updated successfully, but these errors were encountered: