ASP.Net MVC 2.0: EditorFor setting name via attributes

Posted by vdh_ant on Stack Overflow See other posts from Stack Overflow or by vdh_ant
Published on 2010-02-09T21:59:34Z Indexed on 2010/03/25 4:23 UTC
Read the original article Hit count: 417

Filed under:
|
|
|
|

Hey guys

Just wondering how do I mimic the following using attributes...

<%= Html.EditorFor(x => x.SportProgramIdList, "FormMultiSelectDropDownList", "SportProgramIds")%>

I know I can specify the template by using [UIHint("FormMultiSelectDropDownList")] but I am left with the problem with how to set the name...

Cheers Anthony

© Stack Overflow or respective owner

Related posts about asp.net-mvc-2

Related posts about editorfor