在action中返回父页面时用这种办法,action加入一下代码:

  ContentResult content = new ContentResult();            

 content.Content = string.Format("<script language='javaScript' type='text/javaScript'>window.parent.window.location.href = '/控制器/方法';</script>")

    return content;

这样便可以刷新父页面!

相关文章:

  • 2021-09-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-04
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-13
相关资源
相似解决方案