@model HelloWorldMvcApp.reqView
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bootstrap 101 Template</title>
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
.field-validation-error {
@using (Html.BeginForm()) {
@Html.DropDownListFor(model => model.dix,
new SelectList(HelloWorldMvcApp.CacheConfig.dix, "id", "text", Model.dix),
new { @class = "form-control", onchange = "this.form.submit();" })
@Html.DropDownListFor(model => model.lsAddress[0].addrCC,
new SelectList(HelloWorldMvcApp.CacheConfig.Countries.Where(c => c.dix.Contains(Model.dix)), "id", "text", Model.lsAddress[0].addrCC),
new { @class = "form-control", disabled = "disabled" } as object)
@Html.DropDownListFor(model => model.lsAddress[0].addrCC,
new SelectList(HelloWorldMvcApp.CacheConfig.Countries.Where(c => c.dix.Contains(Model.dix)), "id", "text", Model.lsAddress[0].addrCC),
new { @class = "form-control" } as object);
@Html.DropDownListFor(model => model.lsAddress[1].addrCC,
new SelectList(HelloWorldMvcApp.CacheConfig.Countries.Where(c => c.dix.Contains(Model.dix)), "id", "text", Model.lsAddress[1].addrCC),
new { @class = "form-control" } as object);
@for (int i = 0; i < Model.lsAddress.Count; i++)
if (i == cur) { continue; }
@Html.HiddenFor(model => model.lsAddress[i].addrCC)