Skip to content

Instantly share code, notes, and snippets.

@dgwaldo
Created January 24, 2016 01:17
Show Gist options
  • Save dgwaldo/8ae8a46109e2c173402c to your computer and use it in GitHub Desktop.
Save dgwaldo/8ae8a46109e2c173402c to your computer and use it in GitHub Desktop.
Editing MVC Collections Client Side
@model Domain.Models.Theme.Asset
<div class="form-group">
@Html.LabelFor(model => model.Url, htmlAttributes: new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.EditorFor(model => model.Url, new { htmlAttributes = new { @class = "form-control", @id = "${index}" } })
@Html.ValidationMessageFor(model => model.Url, "", new { @class = "text-danger" })
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment