Curtis Timson

Front End & .NET Developer

Tag

helper

How to store razor helpers globally

ASP.NET MVC Razor helpers are a great way of reducing duplicated code by containing code snippets in a View which can then be called multiple times. <div> @DisplayGreeting(“Curtis”) </div> @helper DisplayGreeting(string name) { <span>Hello @name</span> } However what if you… Continue Reading →

© 2017 Curtis Timson — Powered by WordPress

Theme by Anders NorenUp ↑