ASP.NET Monsters #7: Custom Tag Helpers

Sign in to queue

Description

Back in Episode 4 we looked at tag helpers in the Razor View Engine that make some of the lifting we need to do a little lighter when crafting our views. In this edition of the Monsters Weekly we'll go a little further and create a custom tag helper. 

Dave walks us through targeting specific tags, elements containing certain attributes or other factors and demonstrates the c# code needed to light up Visual Studio 2015 with intellisense on your own tag helpers in ASP.NET Core.

Be sure to follow the Monsters on Twitter and check out the blog for related posts.

The production code is ZX for this episode.

Embed

Download

The Discussion

  • User profile image
    darivuki

    This looks cool. But, wouldn't it be challenging to update/modify these custom tag helpers (adding new classes, DOM, etc.).

    Since custom tag helpers are written in .NET, every change to the underlying class results in a need of recompiling/building the code if we would like to use the newly modified custom tag helper. Am I right?

Add Your 2 Cents