Hi
I have a dropdown that i need to set the default selected value from the database.
Example:
<%= Html.DropDownList("state", " -- Select one -- ")%>
The above code binds records from the ViewData["specialty"] from my entity model. And "Select One" is added on the top. Now if i need my dropdown to set the default value to 'NY'. How can i do that?
Appreciate your responses.
Thanks