Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. ViewBag.LocationID = new SelectList(db.LOCATIONS, "LocationID", "Name");
  2. ViewBag.SupplierID = new SelectList(db.SUPPLIERS, "SupplierID", "Name");
  3.  
  4. <div class="form-group">
  5. @Html.LabelFor(model => model.SupplierID, "Supplier:", htmlAttributes: new { @class = "control-label col-md-2" })
  6. <div class="col-md-10">
  7. @Html.DropDownList("SupplierID", null, htmlAttributes: new { @class = "form-control" })
  8. @Html.ValidationMessageFor(model => model.SupplierID, "", new { @class = "text-danger" })
  9. </div>
  10. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement