Advertisement
Guest User

Untitled

a guest
Jan 18th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. public ActionResult Listar()
  2. {
  3. var proveedor = SdProveedor.ListaTipoDocumentoIdentidad();
  4. ViewBag.ListaProveedores = new SelectList(proveedor, "Id", "Descripcion");
  5. return View();
  6. }
  7.  
  8. <div class="form-group">
  9. @Html.LabelFor(model => model.DocumentoIdentidad, htmlAttributes: new { @class = "control-label col-md-2" })
  10. <div class="col-md-10">
  11. @Html.DropDownList("myDropDown", (SelectList)ViewBag.ListaProveedores)
  12. </div>
  13. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement