开发者

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, ...).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜