473,394 Members | 1,726 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

problem in excel file opened in Internet exploer

I have created excel file with data from a query
#in asp or asp.net+c
but when I run the applicaiotn i get the open /save popup
when I choose open -> the file is opened in the IE (and is seen as a
excel file)and when I click File-> save as->I get the type: shtml or
html
but i want to to get the type: xls
How can I do it?
I all ready us
Response.ContentType = "application/vnd.ms-excel";
and
Response.AddHeader("Content-Disposition", " filename=ExcelFile.xls");
with thanks

Shlomy Akons

Sep 25 '05 #1
2 1499

"sakons" <s_*****@hotmail.com> wrote in message
news:11*********************@g44g2000cwa.googlegro ups.com...
I have created excel file with data from a query
#in asp or asp.net+c
but when I run the applicaiotn i get the open /save popup
when I choose open -> the file is opened in the IE (and is seen as a
excel file)and when I click File-> save as->I get the type: shtml or
html
you should be able to change it from html to xls in the save as dialog box
but i want to to get the type: xls
How can I do it?
I all ready us
Response.ContentType = "application/vnd.ms-excel";
and
Response.AddHeader("Content-Disposition", " filename=ExcelFile.xls");
with thanks

Shlomy Akons

Sep 26 '05 #2
thanks a lot for the qiuck answer but i ment
that the default file extention will be xls - so the user won't have to
select the appropriate extention

Thanks a lot in advance

Shlomy Akons

*** Sent via Developersdex http://www.developersdex.com ***
Sep 26 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Trond A. S. Andersen | last post by:
Hi, all! I'm trying to use the System.Web.Mail. "package" combinded with System.Web.Mail.SmtpMail in order to send MS Excel spreadsheets attached to mail messages. However, sending one single...
6
by: Daniel | last post by:
Hi all, Can i open and edit the excel sheet on web page after downloading? After editing, i close the web page and the excel file auto upload to the server. Is it possible? I really struggling...
3
by: S_K | last post by:
Hi, I have a problem when I try to save a .CSV file from an ASP.NET web page and the client has Excel open already. The symptoms are: 1) The web page is currently displaying the Excel...
2
by: yanksrock528 | last post by:
I am writing a program, and i would like to save an xml file that is on the internet now, to my computer in this csharp program. Something else that might help is if i could get the csharp xml...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.