asp.net webform 使用 html partial,asp.net-mvc – 在kendo窗口中使用表单的PartialView

在我的项目中,我需要在Kendo窗口中放置一些表单.这些形式在另一部分视图中.我用它来加载局部视图:

@(Html.Kendo().Window()

.Name("editPasswordPopUp")

.Visible(false)

.Modal(true)

.Width(600)

.Height(500)

.Position(settings =>

settings.Top(70).Left(200))

.Title("Edit your password")

.Content("loading user info...")

.LoadContentFrom("EditPassword", "Member")

.Iframe(true)

.Resizable()

.Draggable()

)

PartialView的动作:

public ActionResult EditPassword()

{

return PartialView();

}

[HttpPost]

[ValidateAntiForgeryToken]

public ActionResult EditPassword(EditPasswordViewModel viewModel)

{

[...]

return RedirectToAction("Profile", "Member", new {id = viewModel.Id});

[...]

}

这是我的PartialView:

@model Devoteam.CustomerPortal.ViewModels.EditPasswordViewModel

@{

ViewBag.Title = "Edit";

Layout = null;

}

@Styles.Render("~/Content/css")

@Scripts.Render("~/bundles/jquery")

@Scripts.Render("~/bundles/jqueryval")

@Scripts.Render("~/bundles/kendo")

@using (Html.BeginForm())

{

@Html.AntiForgeryToken()

@Html.Partial("_GenericMessage")

@Html.ValidationSummary()

// FIELDS

}

当我单击按钮打开Kendo窗口时,部分视图正确加载到其中.

当我提交表单时,操作被正确调用.

这是我的问题:当控制器完成其工作时,我调用RedirectToAction来重定向用户.但页面加载在Kendo窗口而不是主窗口中.关闭Kendo窗口有什么解决方案吗?

第二个问题:按取消按钮时如何关闭Kendo窗口?

先感谢您. (抱歉我的英语不好,这不是我的母语)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值