ASP.NET MVC Html.DropDownListFor Select value

Posted by user295541 on Stack Overflow See other posts from Stack Overflow or by user295541
Published on 2010-04-20T10:19:38Z Indexed on 2010/04/20 10:23 UTC
Read the original article Hit count: 32170

Filed under:


I have a little problem. I use the Html.DropDownListFor helper to render a dropdown list to the client.

But I can't set the selected value in dropdown list.

<%= Html.DropDownListFor(model => Model.CalculationClassCollection, new SelectList(Model.CalculationClassCollection, "ID", "Name", 3 ), new { id = "ddCalculationClass" })%>

Anybody can help me?

© Stack Overflow or respective owner

Related posts about