C#按钮单击打开多个窗口
在ASP.NET(C#)中如何操作只有一个按钮clic,我可以打开多个窗口C#按钮单击打开多个窗口,c#,asp.net,window.open,C#,Asp.net,Window.open,在ASP.NET(C#)中如何操作只有一个按钮clic,我可以打开多个窗口 <dx:ASPxButton ID="ASPxButton_PrintLetrVoit" runat="server" Text="Impression lettre de voiture" AutoPostBack="False"> <ClientSideEvents Click="funct
<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>
提前谢谢。据我所知,您需要在窗口上有不同的名称。所以,测试一下这个:
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');
只需添加另一个窗口即可;?