When to use HTML Helper?

HTML Helper

Single or closely related HTML elements(template)

Simpler,low level logic for displaying elements

Partial View/Child Action

Section of more complex HTML

Higher level,model related logic that may involve controller action method

Both can reduce code repetition

posted on 2016-02-15 15:41  戒日王  阅读(122)  评论(0编辑  收藏  举报

导航