2012-02-02 36 views
0

我怎麼能在ASP.NET(C#)中只有一個按鈕clic,我可以打開多個窗口?C#按鈕點擊打開很多窗口

<dx:ASPxButton ID="ASPxButton_PrintLetrVoit" runat="server" Text="Impression lettre de voiture" AutoPostBack="False"> 
          <ClientSideEvents 
          Click="function (s, e) { e.processOnServer = false; window.open('PrintLettreVoit.aspx?Id=2'); }" /> 

         </dx:ASPxButton> 

我怎樣才能打開更多的窗口只有一個按鈕clic?

<dx:ASPxButton ID="ASPxButton_PrintLetrVoit" runat="server" Text="Impression lettre de voiture" AutoPostBack="False"> 
          <ClientSideEvents 
          Click="function (s, e) { e.processOnServer = false; 
          var i=0; 
          for (i=0;i<=5;i++)        
          window.open('PrintLettreVoit.aspx?Id=i');        
          }" /> 
         </dx:ASPxButton> 

在此先感謝您。

+1

添加另一window.open( 'PrintLettreVoit.aspx編號= 7?');? – Shai 2012-02-02 10:37:04

回答

1

我知道你需要在窗口上有不同的名字。所以測試:

window.open("http://www.google.se", "google"); 
window.open("http://msdn.microsoft.com/sv-se/", "msdn"); 

或者你的情況:

window.open('PrintLettreVoit.aspx?Id=3','ID3'); 
window.open('PrintLettreVoit.aspx?Id=7','ID7'); 
相關問題