Skip to content

Static Html Helper Not Working #10377

@akash3456

Description

@akash3456

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesquestion

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions