问题描述
我经常在按钮单击事件服务器端的新窗口中显示报告.
字符串popupScript =<< script language ='javascript'> window.open('../RptViewer.aspx?RptId = 6& RptPath = ../Reports/RDLC/CostSavingReport.rdlc&stDate =" + startDate.DateTextFromValue +& edDate =" + endDate.DateTextFromValue +"& [email protected]" +"& acct_cat =& insCode =" + txtInsCode.Text.ToString()+"','CustomPopUp','width = 1100,height = 800,menubar = no,resizable = yes');
Page.ClientScript.RegisterStartupScript(typeof(Page),"Report Results",popupScript);
现在想要修改此设置以在每次单击按钮时向我显示一个新窗口,但不要在同一窗口中刷新.
请立即让我知道如何进行操作.
I use to show my report in new window on a button click event server side.
string popupScript = "<script language='javascript'> window.open('../RptViewer.aspx?RptId=6&RptPath=../Reports/RDLC/CostSavingReport.rdlc&stDate=" + startDate.DateTextFromValue + "&edDate=" + endDate.DateTextFromValue + "&[email protected]" + "&acct_cat=&insCode=" + txtInsCode.Text.ToString() + "', 'CustomPopUp', 'width=1100, height=800, menubar=no, resizable=yes') </script>";
Page.ClientScript.RegisterStartupScript(typeof(Page), "Report Results", popupScript);
Now i want to modify this to show me a new window everytime the button click happens but not to refresh in the same window.
Please let me k now how to proceed.
推荐答案
感谢您的帖子!我建议将您的问题发布到以下MSDN论坛之一:JScript»JScript Native»Java Script中:.
祝您有美好的一天!
这篇关于每次单击按钮时都会弹出新窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!