Elijah Li

Elijah Li

  • NA
  • 82
  • 1.1k

Dropdownlist display on top

Oct 1 2020 10:59 AM
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<Manufacturer>().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();" })
 

Answers (2)