在模态窗口打开的那个页面的<head></head>中添加<base target="_self">
返回时
StringBuilder txtScript = new StringBuilder();
txtScript.Append("<script language=javascript>\n");
txtScript.Append("window.returnValue='"+returnstr+"';\n");
txtScript.Append("window.close();" + "\n");
txtScript.Append("</script>");
this.Page.RegisterStartupScript("MsgBox", txtScript.ToString());其中returnstr就是你要返回的字符串。
返回时
StringBuilder txtScript = new StringBuilder();
txtScript.Append("<script language=javascript>\n");
txtScript.Append("window.returnValue='"+returnstr+"';\n");
txtScript.Append("window.close();" + "\n");
txtScript.Append("</script>");
this.Page.RegisterStartupScript("MsgBox", txtScript.ToString());其中returnstr就是你要返回的字符串。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货