Using MVC .Net Core Tag Helpers in MVC 5
Asked Answered
D

1

28

Tag Helpers are a nice substitute for HTML Helpers in ASP.NET. Code is much easier to read when they're employed. To my knowledge, they're available in ASP.NET Core MVC.

Is it possible to use tag helpers in ASP.NET 4.x MVC 5? If so, then how do I go about doing it?

If not, is there a way to write code to create your own tag helpers for ASP.NET 4.x MVC 5?

Devilish answered 6/12, 2016 at 3:18 Comment(3)
Short answer - No and No.Halfblood
@StephenMuecke That's a bummer.Devilish
If you use the nuget package Microsoft.AspNet.Mvc.TagHelpers v1.x it might work, but I haven't tried itUnrestrained
C
0

This is a duplicated of this question. See the answer below.

No, tag helpers are only supported in ASP.NET Core, not in the older ASP.NET (based on the classic .NET Framework, rather than the newer .NET Core). But instead you can use HTML Helpers which do a lot of the same things.

Catheterize answered 29/12, 2021 at 21:53 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.