470,600 Members | 1,480 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,600 developers. It's quick & easy.

contecnt type error

I was trying to make a excel page as i have before using contenttype. but
this time every time i open the page it opens in visual studio, what am i
ding wrong, here is a simple test page i cant get to work

<%@ Language=VBScript %>
<% response.ContentType ="application/x-excel" %>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
</HEAD>
<BODY>

<TABLE WIDTH=75% BORDER=1 CELLSPACING=1 CELLPADDING=1>
<TR>
<TD>d</TD>
<TD>d</TD>
<TD>d</TD>
</TR>
<TR>
<TD>4</TD>
<TD>4</TD>
<TD>4</TD>
</TR>
<TR>
<TD>4</TD>
<TD>4</TD>
<TD>4</TD>
</TR>
</TABLE>
</BODY>
</HTML>
Jul 19 '05 #1
1 1280
Mosley Jones III wrote:
I was trying to make a excel page as i have before using contenttype.
but this time every time i open the page it opens in visual studio,
what am i ding wrong, here is a simple test page i cant get to work

<%@ Language=VBScript %>
<% response.ContentType ="application/x-excel" %>


Use "application/vnd.ms-excel" instead.

Bob Barrows

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Jorgen Haukland, Norway | last post: by
1 post views Thread by Jassim Rahma | last post: by
13 posts views Thread by ScottM | last post: by
669 posts views Thread by Xah Lee | last post: by
reply views Thread by JohnJohnUSA | last post: by
reply views Thread by mchuc7719 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.