473,796 Members | 2,635 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Response.Add Header problems (Content-disposition)

All,
I have an ASP Application in which users can save a recordset as an Excel
spreadsheet should they choose to do so.

When the app was on test box all was well but when I moved it to
production, the page failed and IE returned an error saying that the page
was not available

The lines of code that cause the error appear to be:

in test I have
Response.AddHea der "Content-Disposition", "inline; filename=weberp ort1.xls"
Response.Conten tType = "applicatio n/vnd.ms-excel"

On the production server in a secure environment the same lines produce the
error "Page not available"

If I Comment out the first line the page works fine and I get he option to
save the page as a excel spreadsheet.
e.g
'Response.AddHe ader "Content-Disposition", "inline; filename=weberp ort1.xls"
Response.Conten tType = "applicatio n/vnd.ms-excel"

Does having the application on a secure environment prevent pages from being
returned with a content-disposition
Has anyone seen this error before,? is there a special feature on IIS for
secure links?

Any help or suggestions are appreciated

Thanks
Jawahar
Jul 19 '05 #1
1 14691
you have excel loaded on the production machine?
"Jawahar Rajan" <jr****@nc.rr.c om> wrote in message
news:hV******** *************@t wister.southeas t.rr.com...
All,
I have an ASP Application in which users can save a recordset as an Excel
spreadsheet should they choose to do so.

When the app was on test box all was well but when I moved it to
production, the page failed and IE returned an error saying that the page
was not available

The lines of code that cause the error appear to be:

in test I have
Response.AddHea der "Content-Disposition", "inline; filename=weberp ort1.xls" Response.Conten tType = "applicatio n/vnd.ms-excel"

On the production server in a secure environment the same lines produce the error "Page not available"

If I Comment out the first line the page works fine and I get he option to
save the page as a excel spreadsheet.
e.g
'Response.AddHe ader "Content-Disposition", "inline; filename=weberp ort1.xls" Response.Conten tType = "applicatio n/vnd.ms-excel"

Does having the application on a secure environment prevent pages from being returned with a content-disposition
Has anyone seen this error before,? is there a special feature on IIS for secure links?

Any help or suggestions are appreciated

Thanks
Jawahar

Jul 19 '05 #2

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

Similar topics

1
1665
by: vaibhav verma | last post by:
Hi, I am trying to write a web browser control Application in c#, i want to trap al http request and response header which are sent/recieved. I am new to Windows programming With Regards, Vaibhav
6
5450
by: _jpg_ | last post by:
Hi, I need to read (& store) all the custom response headers in an HttpResponse. I am writing an HttpModule and hence do not know what headers could have been added (but need to cache them for later use). The only relevant methods that I can see are AppendHeader/AddHeader(string, string) and ClearHeaders() both of which are obviously useless to me. Is there any way of reading the custom headers?
1
2912
by: Alfons Puig | last post by:
Hi, MSDN documentation about HTTP Response Headers say Refresh is obsolete and maintained for legacy application compatibility only. How can I achieve the same functionality to releoad the new contents of a page? I can use the timer component but, is there a http-like solution?
0
1024
by: Jan Jacobs | last post by:
Hi there, right now i have to create a webservice that complies with an existing client already. This client was written in Java, and provides a soap header like this: <soap-env:Header> <TransactionID soap-env:mustUnderstand="1" xmlns="http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-5-MM7-1-0"> fh-transaction-id-101-1114094448542
6
1377
by: gamehack | last post by:
Hi all, Let me describe the problem. I've a header file util.h which contains the following: #ifndef UTIL_H_ #define UTIL_H_ const char DEF_TITLE = "My Title"; int num_chars(int num);
8
4386
by: Katie | last post by:
Hi, I am trying to set the content type and header for the response object but for some reason it doesnt set it. I tried it on dev and it worked fine but didnot on production. The difference is that dev is http and production is https. Is there any difference in setting the header and content type when doing so a http and when on a https server. Thanks for your help :)
3
2339
by: sean.j.gage | last post by:
We are building a web service for a client application that will need to send information in the Header of the web service responses. What's the best way to access this header information from the client application which is written in C#?
1
6708
by: pingalkar | last post by:
hi, I want to read time from http response header , using javascript in Hr , Minute and Second form. Pls help with code snipet. thanks & regards, Gajendra
0
811
by: Narendramohan | last post by:
Hi All. How to Add Custom Http Response header in a windows service.? Please help me.
0
9685
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10465
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10242
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10200
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6800
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5582
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4127
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3744
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2931
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.