tags:

views:

24

answers:

1

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

A: 

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.

Darin Dimitrov