@model List<HelloWorldMvcApp.State>
<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 {
<div class="col-md-6 col-md-offset-3">
<h1>@Html.Raw(ViewBag.Message)</h1>
@using (Html.BeginForm())
@Html.DisplayNameFor(model => Model[0].Name)
@Html.DisplayNameFor(model => Model[0].Station)
@for (var i = 0; i < Model.Count(); i++)
@Html.CheckBoxFor(modelItem => Model[i].Selected) @* new bool field *@
@Html.DisplayFor(modelItem => Model[i].Name)
@Html.HiddenFor(modelItem => Model[i].Name)
@Html.DisplayFor(modelItem => Model[i].Station)
@Html.HiddenFor(modelItem => Model[i].Station)
@Html.ActionLink("Update State Data", "UpdateStation", new { id = Model[i].Id }) |
@Html.ActionLink("Delete", "DeleteState", new { id = Model[i].Id }) | Select to Include in Charts
<input type="submit" value="submit" />
<div class="alert alert-warning fade">
<img src="http://entechprod.blob.core.windows.net/dotnetfiddle/morpheus.jpg" style="max-width:100%;"/><br/><br/>
<strong><span class="alert-content"></span></strong>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
<script src="//ajax.aspnetcdn.com/ajax/jquery.validate/1.11.1/jquery.validate.min.js"></script>
<script src="//ajax.aspnetcdn.com/ajax/mvc/4.0/jquery.validate.unobtrusive.min.js"></script>
<script type="text/javascript">