tag-helpers Questions
1
Solved
CustomerEntryModel
[Required]
public String FirstName { get; set; }
CustomerController.cs
[HttpGet]
[Route("Get")]
public IActionResult Get()
{
CustomerEntryModel model = new CustomerEnt...
Nellenelli asked 13/9, 2016 at 7:17
1
Solved
I'm trying to create a custom ASP.NET Core tag helper for a tag that supports asp-hash attribute. What that attribute is supposed to do is just append the provided value to the end of the href attr...
Einberger asked 27/7, 2016 at 18:8
1
Solved
Do You know of a way to add focus to an input element on a razor view for Asp.Net Core. I know this can be done via javascript, but is there a tag for that as well? Either on the input element or t...
Polypary asked 16/7, 2016 at 19:45
1
Solved
According to the documentation:
The @addTagHelper directive makes Tag Helpers available to the view. In this case, the view file is Views/_ViewImports.cshtml, which by default is inherited by al...
Ingridingrim asked 14/7, 2016 at 15:34
1
I am developing a Tag Helper in ASP.NET Core (RC2), and when rendering the Tag Helper I need to access the Request object as I need to figure out what the URL of the request is.
So it seems that i...
Cellaret asked 25/5, 2016 at 12:54
2
Solved
Sorry but most of my searches take me to old MVC codes. Any help will be appreciated.
In MVC 6 with tag helpers, how do you code a set of checkboxes:
Use tag helper for label so clicking it will...
Upheld asked 26/4, 2016 at 4:49
1
Solved
The question is in the title. It seems logical to use this tag helper for every image but if I am indeed supposed to why wasn't this the default?
Is there any performance hit with this? Are there...
Psychobiology asked 20/1, 2016 at 3:12
1
I've been looking at examples on taghelpers on google but couldn't find any example I'm looking for.
I have the following code:
<div class="form-group">
<label asp-for="PersonName" clas...
Paschall asked 11/11, 2015 at 11:2
2
Solved
Is there any way to get a TagHelper to render another TagHelper?
Example TagHelpers;
public class OuterTagHelper : TagHelper
{
public override void Process(TagHelperContext context, TagHelperOut...
Henri asked 21/9, 2015 at 10:4
2
Solved
I've been reading about the new support for Tag Helpers in MVC 6 and now need to create my own. I see that the built in tag helpers for existing HTML elements are all prefixed with "asp-"
For exam...
Advice asked 11/9, 2015 at 21:59
1
Solved
I am trying to get hold of the current route so that I can highlight the active page in a set of links using a Tag Helper.
The TagHelperContext doesn't give me access to anything useful. How can ...
Mantooth asked 12/9, 2015 at 6:7
1
Solved
MVC 6 introduces Tag Helpers as a better alternative to @Html.EditorFor. It is possible to create custom Editor Template. It's also possible to create a custom Tag Helper.
However, when creating ...
Bitternut asked 8/8, 2015 at 16:6
3
Solved
I am currently trying to use taghelpers in asp.net 5. I want to use a select tag helper with a list from the ViewBag. Anything I put into the asp-for field gives me an error because it tries to pul...
Tien asked 4/8, 2015 at 8:37
2
I am currently working on an ASP.NET Core custom tag helper. I need to read a complex object from an attribute as follows:
[Models]
public class Page {
[HtmlAttributeName(page-size)]
public int...
Abatement asked 6/7, 2015 at 13:13
2
Solved
I'm trying to create a custom tag helper in MVC 6 but can't make it work.
Here is my demo tag helper class defined in the web app project.
namespace Microsoft.AspNet.Mvc.TagHelpers
{
[TargetElem...
Breaux asked 20/5, 2015 at 11:33
2
Solved
I am playing around with ASP vnext and AngularJS. I have set up a Web API, am using some controllers and am using angular to do some web-magic.
I have followed most of this guide to get my project...
Mimeograph asked 30/3, 2015 at 18:48
© 2022 - 2024 — McMap. All rights reserved.