Skip to content

Instantly share code, notes, and snippets.

@pabloprogramador
Created April 14, 2015 14:02
Show Gist options
  • Save pabloprogramador/97b66c2c0278bc8f3418 to your computer and use it in GitHub Desktop.
Save pabloprogramador/97b66c2c0278bc8f3418 to your computer and use it in GitHub Desktop.
droplist estados brasil
@Html.DropDownListFor(model => model.ESTADO, new SelectList(
new List<Object>{
new { value="AC" , text = "ACRE" },
new { value="AL" , text = "ALAGOAS" },
new { value="AM" , text = "AMAZONAS" },
new { value="AP" , text = "AMAPÁ" },
new { value="BA" , text = "BAHIA" },
new { value="CE" , text = "CEARÁ" },
new { value="DF" , text = "DISTRITO FEDERAL" },
new { value="ES" , text = "ESPÍRITO SANTO" },
new { value="GO" , text = "GOIÁS" },
new { value="MA" , text = "MARANHÃO" },
new { value="MT" , text = "MATO GROSSO" },
new { value="MS" , text = "MATO GROSSO DO SUL" },
new { value="MG" , text = "MINAS GERAIS" },
new { value="PA" , text = "PARÁ" },
new { value="PB" , text = "PARAÍBA" },
new { value="PR" , text = "PARANÁ" },
new { value="PE" , text = "PERNAMBUCO" },
new { value="PI" , text = "PIAUÍ" },
new { value="RJ" , text = "RIO DE JANEIRO" },
new { value="RN" , text = "RIO GRANDE DO NORTE" },
new { value="RO" , text = "RONDÔNIA" },
new { value="RS" , text = "RIO GRANDE DO SUL" },
new { value="RR" , text = "RORAIMA" },
new { value="SC" , text = "SANTA CATARINA" },
new { value="SE" , text = "SERGIPE" },
new { value="SP" , text = "SÃO PAULO" },
new { value="TO" , text = "TOCANTINS" }
},
"value",
"text",
2), new { @class = "form-control" })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment