Skip to content

Instantly share code, notes, and snippets.

@rahuldass
Last active September 6, 2015 09:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rahuldass/5dc2fdfb4370a6cca2b1 to your computer and use it in GitHub Desktop.
Save rahuldass/5dc2fdfb4370a6cca2b1 to your computer and use it in GitHub Desktop.
Gender Dropdownlist in MVC 4 #mvc4

###Gender Dropdownlist in MVC 4

Gender Dropdownlist in ASP.NET MVC 4

<div class="editor-field">
     @Html.DropDownList("Gender", new List<SelectListItem>
        {
        	new SelectListItem{ Text="Male", Value="Male"},
        	new SelectListItem{ Text="Female", Value="Female"}
		}, "--- Select ---", new { @class = "form-control" })
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment