Top "Tag-helpers" questions

ASP.

Select Tag Helper in ASP.NET Core MVC

I need some help with the select tag helper in ASP.NET Core. I have a list of employees that …

c# asp.net-core asp.net-core-mvc tag-helpers
How to add link parameter to asp tag helpers in ASP.NET Core MVC

I have a lot of experience with ASP.NET MVC 1-5. Now I learn ASP.NET Core MVC and have …

c# asp.net-core asp.net-core-mvc url-parameters tag-helpers
TagHelper for passing route values as part of a link

When specifying asp-controller and asp-action on a link, what's the syntax for also passing an id attribute? E.g. If …

asp.net-core asp.net-core-mvc tag-helpers
Radio Button Tag Helpers in ASP.NET 5 MVC 6

I don't see any tag helpers for radio buttons in ASP.NET 5 MVC 6. What's the right way of handling form …

c# asp.net-mvc asp.net-core asp.net-core-mvc tag-helpers
How can I pass string value for "asp-for" in asp net 5

I want to write a Edit.cshtml file for an entity with many properties to edit, so I have to …

c# asp.net asp.net-mvc razor tag-helpers
How to get value of id in Url from Razor View in ASP.NET Core

I have a simple ASP.NET Core web application with a page like such http://localhost:5050/Posts/Create/3. In my …

asp.net-core asp.net-core-mvc tag-helpers
Set Default/Null Value with Select TagHelper

In asp.net mvc you can use: @Html.DropDownListFor(model => model.Category, ViewBag.Category as IEnumerable<SelectListItem>, "…

c# asp.net-core asp.net-core-mvc tag-helpers
Does RenderSection() work inside ASP.NET Core's <environment> tag-helper?

Layout has this: <!DOCTYPE html> <html> <head> <environment names="Development">@RenderSection("devCss", …

c# asp.net razor asp.net-core tag-helpers
asp.net conditionally disable a tag helper (textarea)

I want to enable or disable a textarea depending on a condition that evalueates from the model, and I am …

razor asp.net-core-mvc tag-helpers
ASP.NET CORE MVC select tag helper - how to set selected value without using ModelView

In the following code of an ASP.NET MVC Core project, the Get action method Test(...) is displaying a dropdown …

c# asp.net-core-mvc html.dropdownlistfor tag-helpers