473,320 Members | 2,006 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,320 software developers and data experts.

Content Type

is there a manual way code the "ContentType" header property?

if i build an HTML page with <meta name="Content-Type"
content="application/vnd.ms-excel"> in the header the browser just loads
the contents as a web page.

I dont want to use the response object's ContentType property.

Cant it be dont manually in HTML?

what HTML does the ContentType property actually generate?

Nov 17 '05 #1
3 1402
The Response.ContentType property doesn't set any HTML. It sets a Response
Header. Not all Response Headers that are included in a Response are visible
in the page HTML. Many of them are there for the browser, and the browser
simply reads them.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Neither a follower nor a lender be.

"hunt n peck" <x> wrote in message
news:e3**************@TK2MSFTNGP10.phx.gbl...
is there a manual way code the "ContentType" header property?

if i build an HTML page with <meta name="Content-Type"
content="application/vnd.ms-excel"> in the header the browser just loads
the contents as a web page.

I dont want to use the response object's ContentType property.

Cant it be dont manually in HTML?

what HTML does the ContentType property actually generate?

Nov 17 '05 #2
Thanks.
Can I use an asp page to send both an html page AND a downloadable file to
the client all in one response?
Would I use HTTP headers to do that?


"Kevin Spencer" <ke***@takempis.com> wrote in message
news:eG**************@TK2MSFTNGP12.phx.gbl...
The Response.ContentType property doesn't set any HTML. It sets a Response
Header. Not all Response Headers that are included in a Response are visible in the page HTML. Many of them are there for the browser, and the browser
simply reads them.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
http://www.takempis.com
Neither a follower nor a lender be.

"hunt n peck" <x> wrote in message
news:e3**************@TK2MSFTNGP10.phx.gbl...
is there a manual way code the "ContentType" header property?

if i build an HTML page with <meta name="Content-Type"
content="application/vnd.ms-excel"> in the header the browser just loads the contents as a web page.

I dont want to use the response object's ContentType property.

Cant it be dont manually in HTML?

what HTML does the ContentType property actually generate?


Nov 17 '05 #3
I don't know the answer to that one. Never came across such a situation
before. Seems it might be possible with an attachment of some kind.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Neither a follower nor a lender be.

"hunt n peck" <x> wrote in message
news:e1**************@TK2MSFTNGP10.phx.gbl...
Thanks.
Can I use an asp page to send both an html page AND a downloadable file to
the client all in one response?
Would I use HTTP headers to do that?


"Kevin Spencer" <ke***@takempis.com> wrote in message
news:eG**************@TK2MSFTNGP12.phx.gbl...
The Response.ContentType property doesn't set any HTML. It sets a Response
Header. Not all Response Headers that are included in a Response are

visible
in the page HTML. Many of them are there for the browser, and the browser simply reads them.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
http://www.takempis.com
Neither a follower nor a lender be.

"hunt n peck" <x> wrote in message
news:e3**************@TK2MSFTNGP10.phx.gbl...
is there a manual way code the "ContentType" header property?

if i build an HTML page with <meta name="Content-Type"
content="application/vnd.ms-excel"> in the header the browser just

loads the contents as a web page.

I dont want to use the response object's ContentType property.

Cant it be dont manually in HTML?

what HTML does the ContentType property actually generate?



Nov 17 '05 #4

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

Similar topics

6
by: Dave Kuhlman | last post by:
Suppose that I have content that looks like what I've included at the end of this message. Is there something in the standard Python library that will help me parse it, break into the parts...
1
by: athirumurthi | last post by:
I have a WinINet communicating with an integration server (X-AspNet-Version: 1.1.4322) using form posts. One form post that includes jpeg content. However, the data received at the server is...
4
by: shypen42 | last post by:
Hi, I'd like to know how to serve web pages as "cleanly" as possible, maybe validating them if it's possible. How should I do to both respect standards *and* have it work under the various IE...
11
by: Trapulo | last post by:
I've this statement in my output's creation: Response.Clear() Response.ContentType = "application/vnd.google-earth.kml+xml kml" Response.AddHeader("Content-Disposition", "inline;...
1
by: mahesh.kanakaraj | last post by:
Hi All, I have a confusion in finding the 'effective content' of a complex type definition in a XML Schema. I shall give you an example situation to clearly explain my problem. Let's have...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.