我最终自己解决了, return Content(Message.Show(PlatForm.AddFailure, PageName.HotelAdd+"?flag=-1"));让他返回增加页面。
public ActionResult Add(int? flag)
{
HotelDTO model = new HotelDTO();
model.HotelLevelDataSource = Config.GetDropdownListByList("Grade");
ViewBag.flag = flag.ToInt();
return View(model);
}
$(function () {
var msg = "@ViewBag.flag";
if (msg == "1") {
parent.$('#Coverlayer').window('close');
}
});
以增加页面去关闭窗体。
public ActionResult Add(int? flag)
{
HotelDTO model = new HotelDTO();
model.HotelLevelDataSource = Config.GetDropdownListByList("Grade");
ViewBag.flag = flag.ToInt();
return View(model);
}
$(function () {
var msg = "@ViewBag.flag";
if (msg == "1") {
parent.$('#Coverlayer').window('close');
}
});
以增加页面去关闭窗体。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货