Top "Tag-helpers" questions

ASP.

MVC 6 Tag Helpers and foreach

What would I give to asp-for property of a label tag helper in order to display items from a collection. …

collections asp.net-core-mvc tag-helpers
In MVC 6, how to code checkbox list in view and pass the checked values to the controller?

Sorry but most of my searches take me to old MVC codes. Any help will be appreciated. In MVC 6 with …

c# checkbox asp.net-core-mvc tag-helpers
Select TagHelper Using List from ViewBag

I am currently trying to use taghelpers in asp.net 5. I want to use a select tag helper with a …

c# asp.net-core asp.net-core-mvc tag-helpers
asp-validation-for tag helper is not working for server side validation errors

CustomerEntryModel [Required] public String FirstName { get; set; } CustomerController.cs [HttpGet] [Route("Get")] public IActionResult Get() { CustomerEntryModel model = new CustomerEntryModel(); return …

asp.net-core asp.net-core-mvc tag-helpers
Add CSS Class to html element in a TagHelper

In an ASP.NET Core View I have the following: <div class="message" message=""></div> And …

c# asp.net-core tag-helpers
Nesting TagHelpers in ASP.NET Core MVC

The ASP.NET Core TagHelper documentation gives the following example: public class WebsiteContext { public Version Version { get; set; } public int …

asp.net razor asp.net-core asp.net-core-mvc tag-helpers
Mixing C# and HTML Helper tags ASP.NET MVC 6 (ASP.NET Core)

I'm using the new Helper tags in ASP.NET MVC 6. <form asp-area="DAS" asp-controller="Report" asp-action="Add" asp-route-id="@Model.…

c# asp.net-core asp.net-core-mvc asp.net-core-1.0 tag-helpers
MVC6 attribute routing with two parameters

I've had a look around for this and nothing that pertains to the MVC6 taghelper anchor tag in relation to …

asp.net-core asp.net-core-mvc tag-helpers