每次单击按钮时都会弹出新窗口

问题描述:

我经常在按钮单击事件服务器端的新窗口中显示报告.

字符串popupScript =<< script language ='javascript'> window.open('../RptViewer.aspx?RptId = 6& RptPath = ../Reports/RDLC/CostSavingReport.rdlc&stDate =" + startDate.DateTextFromValue +& edDate =" + endDate.DateTextFromValue +"& userId=srayabharapu@medservco.com" +"& 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 + "&userId=srayabharapu@medservco.com" + "&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.

http://forums.microsoft.com/msdn/showpost.aspx?postid=2235769&siteid=1 .