关闭新建的子页面返回父页面:
this.Page.Controls.Add(new LiteralControl("<script>window.close();</script>"));
打开(非跳转)子页面:
Response.Write("<script>window.open('test.aspx','_blank')</script>");
本文介绍了如何使用 C# 在 ASP.NET 应用程序中实现关闭当前子页面并返回父页面的功能,同时还提供了打开新子页面的方法。
关闭新建的子页面返回父页面:
this.Page.Controls.Add(new LiteralControl("<script>window.close();</script>"));
打开(非跳转)子页面:
Response.Write("<script>window.open('test.aspx','_blank')</script>");
4767

被折叠的 条评论
为什么被折叠?