سلام
مهندس این هم کد ویو مربوطه است
@model ModalTextErrorValidation.Models.ContactU
@{
Layout = null;
}
<h2>Edit</h2>
@using (Html.BeginForm())
{
@Html.AntiForgeryToken()
<div class="form-horizontal">
<h4>ContactU</h4>
<hr />
@Html.ValidationSummary(true, "", new { @class = "text-danger" })
@Html.HiddenFor(model => model.ContactUsId)
<div class="form-group">
@Html.LabelFor(model => model.ContacUsPreson, htmlAttributes: new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.EditorFor(model => model.ContacUsPreson, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.ContacUsPreson, "", new { @class = "text-danger" })
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.ContacUsNo, htmlAttributes: new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.EditorFor(model => model.ContacUsNo, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.ContacUsNo, "", new { @class = "text-danger" })
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.CountryId, htmlAttributes: new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.EditorFor(model => model.CountryId, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.CountryId, "", new { @class = "text-danger" })
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.StatesId, htmlAttributes: new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.EditorFor(model => model.StatesId, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.StatesId, "", new { @class = "text-danger" })
</div>
</div>
</div>
<div class="col-lg-6">
<button id='Save' type="submit" class="btn btn-success rounded float-md-right">
<span class="ml-lg-1">Save</span>
</button>
</div>
}
<div class="col-lg-6">
<button id='Back' class="btn btn-success rounded float-md-left">
<span class="ml-lg-1">Back</span>
</button>
</div>
@Scripts.Render("~/bundles/jqueryval")
لطفا بگویید چگونه می توانم وقتی عملیات ویرایش با موفقیت انجام شد
وارد قسمت success ajax مربوطه شوم نه وارد صفحه json
لطفا راهنمای بفرمایید