Skip to content

Instantly share code, notes, and snippets.

@CodeHeight
Last active February 8, 2023 16:00
Show Gist options
  • Save CodeHeight/df8efdc32fcb9a65c32a36c85a9c8ce7 to your computer and use it in GitHub Desktop.
Save CodeHeight/df8efdc32fcb9a65c32a36c85a9c8ce7 to your computer and use it in GitHub Desktop.
VB.NET @Html.DropDownListFor
@Html.DropDownListFor(Function(Model) Model.ProgramTypeId, New SelectList(Model.allPrograms,
"ProgramTypeId", "ProgramName"), "Select Program....",
New With {Key .class = "form-control", Key .required = "Required"})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment