I have dropdownlist and the user want to have the default message shown on the first instead of the bottom. How?
Here is the code.
@Html.DropDownListFor(m => m.ManufacturerID, new SelectList(Lookup.GetValues(tablename.Manufacturer, "ModuleName", "TRU_Manufact").Cast().ToList().Where(y => y.StateOf == 0).Select(x => new { Value = x.ManufacturerID, Text = x.Name }), "Value", "Text"), "Choose Manufacturer",htmlAttributes: new { @id = "TruManufacturerID", @class = "form-control oemData", @style = "border-radius: 0px 5px 5px 0px;", Selected=true, onchange = @"TruManufacturerIDSelected();" })

Asma KhalidRank #160 · 14.7K reputationPosted Oct 1, 2020, 9:56 PM EDT
Jignesh KumarRank #91 · 22.9K reputationPosted Oct 1, 2020, 11:34 PM EDT