|
 |
asp_web_howto thread: Cannot get parms using ContentType = application/vnd.ms-excel
Message #1 by "Paul R Beaulieu" <paulbeaulieu@s...> on Sun, 22 Jul 2001 18:30:50 -0400
|
|
I have code that produces an Excel spreadsheet that is formed using HTML...
for this to happen I have to use the following:
Response.ContentType = "application/vnd.ms-excel"
However when I do this I can no longer access parms passed to the asp...
abc = Request.QueryString("abc") for GET method or
abc = Request.From("Abc") for POST
just do not work...
I tried doing the Querystring or form before setting the ContentType and I
as able to receive the parms but when ASP tries to excute the ContentType
later I get an error indicating that the Header info has already been
written...
Does anyone know how to get around this?
Thanks, Paul.
Message #2 by "Alex Shiell, ITS, EC, SE" <alex.shiell@s...> on Mon, 23 Jul 2001 10:37:33 +0100
|
|
I don't know if this will work, but try reading in the parameters
before setting the content type
-----Original Message-----
From: Paul R Beaulieu [mailto:paulbeaulieu@s...]
Sent: 22 July 2001 23:31
To: ASP Web HowTo
Subject: [asp_web_howto] Cannot get parms using ContentType
application/vnd.ms-excel
I have code that produces an Excel spreadsheet that is formed using
HTML...
for this to happen I have to use the following:
Response.ContentType =3D "application/vnd.ms-excel"
However when I do this I can no longer access parms passed to the
asp...
abc = Request.QueryString("abc") for GET method or
abc = Request.From("Abc") for POST
just do not work...
I tried doing the Querystring or form before setting the ContentType
and I as able to receive the parms but when ASP tries to excute the
ContentType later I get an error indicating that the Header info has already been written...
Does anyone know how to get around this?
Thanks, Paul.
Message #3 by Roger Balliger <Roger@i...> on Mon, 23 Jul 2001 09:17:12 -0700
|
|
Did you try a response.buffer = true before your Excel ContentType
line?
Roger
-----Original Message-----
From: Paul R Beaulieu [mailto:paulbeaulieu@s...]
Sent: Sunday, July 22, 2001 3:31 PM
To: ASP Web HowTo
Subject: [asp_web_howto] Cannot get parms using ContentType =3D
application/vnd.ms-excel
I have code that produces an Excel spreadsheet that is formed using
HTML...
for this to happen I have to use the following:
Response.ContentType =3D "application/vnd.ms-excel"
However when I do this I can no longer access parms passed to the
asp...
abc =3D Request.QueryString("abc") for GET method or
abc =3D Request.From("Abc") for POST
just do not work...
I tried doing the Querystring or form before setting the ContentType
and I
as able to receive the parms but when ASP tries to excute the
ContentType
later I get an error indicating that the Header info has already been
written...
Does anyone know how to get around this?
Thanks, Paul.
Message #4 by "Paul R Beaulieu" <paulbeaulieu@s...> on Wed, 25 Jul 2001 07:51:42 -0400
|
|
Haven't tried it, what does rue do? or is that true... thanks, Paul.
-----Original Message-----
From: Roger Balliger [mailto:Roger@i...]
Sent: July 23, 2001 12:17 PM
To: ASP Web HowTo
Subject: [asp_web_howto] RE: Cannot get parms using ContentType
applicat ion/vnd.ms-excel
Did you try a response.buffer =rue before your Excel ContentType line?
Roger
|
|
 |