在一人页面中的一按钮事件中有以下语句
Response.Write("<script Language=JavaScript>")
Response.Write("ChildWindow = window.open('../PrintDocument/DocumentSender.aspx?ContractID="&ContractID& "', 'newwin', 'width=730,height=700,top=100,left=200,toolbar=no,status=no,location=no,menubar=yes,directories=no,scrollbars=no,resizable=no')")
Response.Write("</script>")
Response.Redirect("Document.aspx")
运行调试时怎么没有弹出窗体就直接转向另一页面,有什么解决办法吗
Response.Write("<script Language=JavaScript>")
Response.Write("ChildWindow = window.open('../PrintDocument/DocumentSender.aspx?ContractID="&ContractID& "', 'newwin', 'width=730,height=700,top=100,left=200,toolbar=no,status=no,location=no,menubar=yes,directories=no,scrollbars=no,resizable=no')")
Response.Write("</script>")
Response.Redirect("Document.aspx")
运行调试时怎么没有弹出窗体就直接转向另一页面,有什么解决办法吗
删掉这句
Response.Redirect("Document.aspx")
Response.Write(strRedirect)
为Response.Write("<script language='javascript'>window.location='document.aspx'</script>");
buttonId.Attributes.Add("onclick","window.open('newpage.aspx','','width=500,height=370,status=no');");
就可以了,你试一试看^_^