Open multiple windows for an asp.net page

G

Geoff collishaw

I'm trying to create a form where:
(a) The user is given a list or Reporting Services reports
in a listbox
(b) When the user clicks on a button, then these reports
are opened in SEPARATE windows.
So, if there's three reports listed then 3 extra browser
windows will open IN ADDITION to the one that's already
open.

I can use the following line:

Response.Write("<script>window.open('" & Me.listbox1.Items
(i).Text & "','_new');</script>")

but as I loop through this code, it opens each report in
the SAME new window.
So the first say 2 reports don't get a chance to render
but the last one does because they are all using the same
new window. And the last report overwrote the previous
reports urls in this one window.

Can anyone suggest how I can execute the above line of
code x times and have it open x separate new windows
please?

Thanks
 
K

Ken Dopierala Jr.

Hi,

You need to change the title '_new' for each window. Maybe use a counter in
your loop and append that to the title. This will open the windows
separately. Good luck! Ken.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top