Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public ActionResult Listar()
- {
- var proveedor = SdProveedor.ListaTipoDocumentoIdentidad();
- ViewBag.ListaProveedores = new SelectList(proveedor, "Id", "Descripcion");
- return View();
- }
- <div class="form-group">
- @Html.LabelFor(model => model.DocumentoIdentidad, htmlAttributes: new { @class = "control-label col-md-2" })
- <div class="col-md-10">
- @Html.DropDownList("myDropDown", (SelectList)ViewBag.ListaProveedores)
- </div>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement