What is the difference between declarative HTML helpers and HTML helpers in ASP.NET MVC?
In many places you hear developers talk about Declarative HTML helpers or HTML helpers. What is their开发者_JS百科 difference. Are they just synonyms?
Declarative HTML helpers use the @helper
function and are declared inline inside the Razor views.
HTML helpers are extension methods declared in separate classes and can be used in any view engine (Razor, WebForms, Spark, ...).
精彩评论