前台:
1 @{ 2 ViewBag.Title = "爱湛师-个人信息"; 3 Layout = "~/Views/Shared/DefaultMaster.cshtml"; 4 } 5 7 8 9 10 3738 会员管理中心 > 全部列表39
要被加载的另一个页面:
1 @model Jyson.ZhanShiQuan.Model.UserModel 2 @{ 3 Layout = null; 4 } 5 10111412 修改密码
131516 @using (Ajax.BeginForm("UpdatePassword", "UserInfo", new AjaxOptions { OnSuccess = "OnUpdatePassword", UpdateTargetId = "pagelist" }))17 { 18 @Html.ValidationSummary(true)193420 @Html.LabelFor(model => model.Password, "输入新密码:")21 @Html.EditorFor(model => model.Password)22 @Html.ValidationMessageFor(model => model.Password)23
2425 @Html.LabelFor(model => model.ConfirmPassword, "确认密码:")26 @Html.EditorFor(model => model.ConfirmPassword)27 @Html.ValidationMessageFor(model => model.ConfirmPassword)28
2930 3132 }33
最终效果: