Link to home
Start Free TrialLog in
Avatar of jirivera51
jirivera51

asked on

Open multiple windows from code behind asp.net 2

HI

I'm tryin to open multiple popup windows from code behind with the purpose of displaying xls files but I only seem to be able to show only one window. it works fine when i need to display only one file but when I need to display more than one it only pops up the first one

        file_array = dir.GetFiles("*.xls")
        For Each file In file_array
            ClientScript.RegisterStartupScript _
            (Me.GetType, "popup", "window.open('" & app_path & file.Name & "','_blank','menubar=no')", True)
        Next


thanks in advanced
ASKER CERTIFIED SOLUTION
Avatar of Jeeva Subburaj
Jeeva Subburaj
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial