[asp.net-mvc] Html.DropDownList FindByValue in an Edit view?
- by Pandiya Chendur
I have an edit page with a Html.DropDownList in it.... I place the value in textbox but i cant show the dropdownlist value it always shows up with Select... Any suggestion how it can be done...
<p>
<label for="Mat_Name">Mat_Name:</label>
<%= Html.TextBox("Mat_Name", Model.Mat_Name) %>
<%= Html.ValidationMessage("Mat_Name", "*") %>
</p>
<p>
<label for="MeasurementTypeId">MeasurementType:</label>
<%= Html.DropDownList("MeasurementType", "Select")%>
<%= Html.ValidationMessage("MeasurementTypeId", "*") %>
</p>