代码如下:
Dim Url As String
Url = "<script language=javascript> " + vbCrLf
Url += "window.open('RecieveOrderPrint.aspx?" & "Instancecode=" & CStr(InstanceCode) & "')" + vbCrLf
Url += "window.open('OrderPrint.aspx?" & "Instancecode=" & CStr(InstanceCode) & "')" + vbCrLf
Url += "window.close()</script>" + vbCrLf Response.Write(Url)
请问如何解决窗口弹出被屏蔽的问题??
Dim Url As String
Url = "<script language=javascript> " + vbCrLf
Url += "window.open('RecieveOrderPrint.aspx?" & "Instancecode=" & CStr(InstanceCode) & "')" + vbCrLf
Url += "window.open('OrderPrint.aspx?" & "Instancecode=" & CStr(InstanceCode) & "')" + vbCrLf
Url += "window.close()</script>" + vbCrLf Response.Write(Url)
请问如何解决窗口弹出被屏蔽的问题??
2.模态窗口的关闭
3.模态窗口的传递参数。
4.其他。
1.window.showModalDialog("DialogPage.aspx","newwin","dialogHeight: 200px; dialogWidth: 150px; dialogTop: 458px; dialogLeft: 166px; edge: Raised; center: Yes; help: Yes; resizable: Yes; status: Yes;");2.window.close();3.传值
ParentPage.aspx:
window.showModalDialog("DialogPage.aspx?para1=aaa¶2=bbb");DialogPage.aspx:
string str1=Request.QueryString["para1"].toString();
string str2=Request.QueryString["para2"].toString();返回值
DialogPage.aspx:
window.returnValue="aaa";ParentPage.aspx:
var str=window.showModalDialog("DialogPage.aspx");
function ShowPrintOrder(InstanceCode)
{
window.open('RecieveOrderPrint.aspx?Instancecode=' + InstanceCode,"_blank") ;
window.open('OrderPrint.aspx?Instancecode=' + InstanceCode,"_blank" ); event.returnValue=false; //不返回服務端 } 结果只开第一个窗口,第二个还是不开....
Good luck.
新开一个窗口,本窗口重导向一个....就开两个了..
function ShowPrintOrder(InstanceCode)
{
window.open('RecieveOrderPrint.aspx?Instancecode=' + InstanceCode,"_blank") ;
window.open('OrderPrint.aspx?Instancecode=' + InstanceCode,"_self" );
event.returnValue=false; //不返回服務端
} 再次谢谢各位!
并请各位提供补充意见.