Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Contributor
3932 Points
3789 Posts
Sep 15, 2008 11:47 PM|LINK
simonech Then the DropDownList can also be called with the easy overload: <%= Html.DropDownList("","Targets") %>
Then the DropDownList can also be called with the easy overload:
<%= Html.DropDownList("","Targets") %>
But how to I "tell" the DropDownList which value is the selected one?
ViewData["Target"] holds that value and in taken from a database so on Edit view I want the DropDownList to be on that value.
Thanks,
Miguel
shapper
Contributor
3932 Points
3789 Posts
Re: DropDownList ... What am I doing wrong?
Sep 15, 2008 11:47 PM|LINK
But how to I "tell" the DropDownList which value is the selected one?
ViewData["Target"] holds that value and in taken from a database so on Edit view I want the DropDownList to be on that value.
Thanks,
Miguel