Skip to main content

All Questions

0 votes
2 answers
1k views

Custom Tag Helper not working in ASP.Net Core MVC

I am using Asp.Net Core MVC and i am trying to create a new Tag Helper Attribute but tag helper attribute is not working and no intelliSense is showing up on my razor view. I don't know what i am ...
Saud Nasir's user avatar
7 votes
2 answers
2k views

ASP.Net Core: Output 2 tags from one tag helper

Using ASP.Net Core's Tag Helpers, is there any way to convert 1 tag into 2 tags at the root level? I know you can remove a tag completely using TagHelperOutput.TagName == null, but I'm wondering how I ...
Johnny Oshika's user avatar
2 votes
1 answer
2k views

How do you pass variable to ASP.NET Core's Tag Helpers attributes?

I need to dynamically generate the route name for my form and pass it to the form tag helper. This is what I have: @{ string route = GetRouteName(); // returns "MyRouteName" } <form asp-route="...
Ben's user avatar
  • 5,675
1 vote
2 answers
1k views

How do you use tag helpers to create links to controllers/actions that use slashes in route attributes?

Before I start, I am aware there are similar questions to this, but they all pertain to using slashes with parameters in the routes which is not what I am trying to achieve (at least not yet). I am ...
Ben's user avatar
  • 5,675
0 votes
0 answers
198 views

Is it possible to stop the propagation of a taghelpers in one of the taghelpers linked to that tag?

I would like to stop the propagation of any taghelpers linked to a tag. I have a attribute based taghelper that I use to check whether the user can see or use a tag, and based on that I would like to ...
Lyon's user avatar
  • 576