我怎么能在ASP.NET(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>
如何只用一键点击打开更多窗口?
<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>
提前谢谢你。
答案 0 :(得分: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');