Elijah Li

Elijah Li

  • 1.9k
  • 81
  • 415

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();" })
 

Brought to you by:

Answers (2)