开发者

How to disable element naming prefix in asp.net mvc2 template?

How to disable element prefix in asp.net mvc2 t开发者_Go百科emplate? Should I use Partial Control Instead?


To answer my own question, this line of code removes the hierarchical prefix from the element name..


<% ViewData.TemplateInfo.HtmlFieldPrefix = ""; %>
<%= Html.EditorFor(model => model.Description) %>

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜