@model SampleMvc4Application.Sample
@{
ViewBag.Title = "Edit";
}
<h2>Edit</h2>
@using (Html.BeginForm()) {
@Html.ValidationSummary(true)
<fieldset>
<legend>Sample</legend>
@Html.HiddenFor(model => model.SampleId)
<div class="editor-label">
@Html.LabelFor(model => model.SampleName)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.SampleName)
@Html.ValidationMessageFor(model => model.SampleName)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.SampleValue)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.SampleValue)
@Html.ValidationMessageFor(model => model.SampleValue)
</div>
<p>
<input type="submit" value="Save" />
</p>
</fieldset>
}
<div>
@Html.ActionLink("Back to List", "Index")
</div>
@section Scripts {
@Scripts.Render("~/bundles/jqueryval")
}
Dosyayı İndir