?
Solved

opening excel file in a new window in IE

Posted on 2006-04-13
6
Medium Priority
?
298 Views
Last Modified: 2008-03-03
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.
0
Comment
Question by:NUCLEARE
  • 4
  • 2
6 Comments
 
LVL 30

Expert Comment

by:Irwin Santos
ID: 16445023
<%Response.Write("<script>window.open('/excel.xls');</script>")%>
0
 

Author Comment

by:NUCLEARE
ID: 16445123
Sorry
but i'm new in asp.net
Where i have to put this code?
Inside vb.net code?
0
 
LVL 30

Expert Comment

by:Irwin Santos
ID: 16445170
AFTER the last line of code that you want executed
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:NUCLEARE
ID: 16445271
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
0
 
LVL 30

Accepted Solution

by:
Irwin Santos earned 2000 total points
ID: 16445355
use this:

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

or


This

%Response.Write("<script>window.open('/excel.xls');</script>")%>
0
 
LVL 30

Expert Comment

by:Irwin Santos
ID: 16451642
cool. thank you!
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses

750 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question