Skip to content

Global helpers #60755

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 task done
lonix1 opened this issue Mar 5, 2025 · 0 comments
Open
1 task done

Global helpers #60755

lonix1 opened this issue Mar 5, 2025 · 0 comments
Assignees
Labels
area-ui-rendering Includes: MVC Views/Pages, Razor Views/Pages

Comments

@lonix1
Copy link
Contributor

lonix1 commented Mar 5, 2025

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe the problem.

We used to have global helpers via the App_Code folder. They were INCREDIBLY useful for managing a complicated codebase with lots of common functionality.

That was removed, and we were given other idioms: view components, partials, tag helpers, local helpers, etc. Although those are useful, they are absolutely not the same. There are loads of common small snippets that one typically reuses in many views. One cannot implement a view component or partial for each. That does not scale. This is a real pain point for any non-trivial system.

This was requested many times over the years (e.g. 1, e.g. 2). There are many StackOverflow questions which show people struggling with this, including one with 75 upvotes and 33k views.

Describe the solution you'd like

Every web framework has such functionality. ASP.NET did too. This would be a small addition which would provide immense and measurable benefit to your users, who've asked for it in massive numbers over many years.

PLEASE please consider giving us global helpers in v10.

Additional context

Thank you for considering it!

@ghost ghost added the area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates label Mar 5, 2025
@mikekistler mikekistler added area-ui-rendering Includes: MVC Views/Pages, Razor Views/Pages and removed area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates labels Mar 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-ui-rendering Includes: MVC Views/Pages, Razor Views/Pages
Projects
None yet
Development

No branches or pull requests

3 participants