I want to render input for model field with prefix, like so: ..name="Field.FormId"..
.
How can I do this using typed helpers? When I use
Html.HiddenFor(m => m.FormId),
I get 'FormId' as field name..
I want to render input for model field with prefix, like so: ..name="Field.FormId"..
.
How can I do this using typed helpers? When I use
Html.HiddenFor(m => m.FormId),
I get 'FormId' as field name..
You can't. You could use editor templates instead. Brad Wilson has a series of blog posts describing them. Scott Gu also covers them in this post.