.Net Core,  Microsoft

.Net Core ASP Tag Helpers

I has to be one of the most useful things added… You got Tag Helps…

Consider the simplest example…

<img src="/images/somePng.png" />

Not hard and very common. But consider the task of versioning your images for a web page… Enter Tag Helpers

<img src="/images/somePng.png" asp-append-version = "true"/>

This gives us a Hash version appended, so if an image changes? Indeed yes the hash value changes and this will trigger a cached page to update the image. 

Wow, Tag Helpers… very handy.

ScottGeek

 

Leave a Reply