Create.cshtml
Dosyayı İndir
@model AspMvcJQuery.Sample
@{
ViewBag.Title = "Create";
}
@using (Ajax.BeginForm("Create", "Partial", new AjaxOptions { HttpMethod = "POST", UpdateTargetId = "ResultsDivision" }))
{
@Html.ValidationSummary(true)
<fieldset>
<legend>Sample</legend>
<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>
<div class="editor-label">
@Html.LabelFor(model => model.SampleDate)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.SampleDate)
@Html.ValidationMessageFor(model => model.SampleDate)
</div>
<p>
<input type="submit" value="Create" id="CreateSample" />
</p>
</fieldset>
<div id="ResultsDivision">
</div>
}
Dosyayı İndir