Link to home
Start Free TrialLog in
Avatar of NUCLEARE
NUCLEARE

asked on

opening excel file in a new window in IE

Hi,
i'd like to know if it's possibile to open a excel file in IE  in a new window that i create on web server.
I use response.redirect(http//........../excel.xls) but it open in the same window of my aspx page.
Avatar of Irwin Santos
Irwin Santos
Flag of United States of America image

<%Response.Write("<script>window.open('/excel.xls');</script>")%>
Avatar of NUCLEARE
NUCLEARE

ASKER

Sorry
but i'm new in asp.net
Where i have to put this code?
Inside vb.net code?
AFTER the last line of code that you want executed
Sorry irwinpks,
but if i write this line at the end of my vb.net function i get
invalid character for the first % in visual studio
ASKER CERTIFIED SOLUTION
Avatar of Irwin Santos
Irwin Santos
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
cool. thank you!