DmitryEfimenko / TwitterBootstrapMvc

Fluent implementation of ASP.NET-MVC HTML helpers for Twitter Bootstrap.
Apache License 2.0
221 stars 78 forks source link

An equivalent to @Html.DisplayFor ?? #392

Closed mletheren closed 9 years ago

mletheren commented 9 years ago

Hi,

I have been using TwitterBootstrap MVC for a long time, and I keep wondering why there is no equivalent to @Html.DisplayFor when embedding into forms?

Regards

DmitryEfimenko commented 9 years ago

The regular @html.Bootstrap().DisplayFor() would bring zero value in. However, when you are in the FormGroup context, this helper exists:

f.FormGroup().DisplayFor(...)

This comment might also to be useful for you.