Re: Content-Disposition starts a new session
- From: "Anonymous Poster" <anon@xxxxxxxxxxxxx>
- Date: Wed, 29 Nov 2006 09:55:38 -0000
Anyone?? (apologies for double post - msimn screwed up..)
I've since tried the following -
1) Moving the code to do the export to a new web application and using a
webserver caching method to retrieve the report data
2) Saving the document on the server and providing a simple link to the
generated file
Method 1 gets around the 'file not found' issue but the new session problem
remains.
Method 2 seems to allow opening the file to work ok, but saving the file
this time causes the new session bug.
This issue is a obviously a showstopper for our clients!
Simon
hi,
I'm having a serious issue with the VS 2003 / 1.1 framework and
attachments. If I try to prompt to open/save a file with the following
public void WriteBinaryResponse(HttpResponse aResponse, string
aContentType, byte[] aData, string aDefaultFileName)
{
aResponse.ClearContent();
if (aDefaultFileName != null)
aResponse.AppendHeader("Content-Disposition","attachment;filename=\""+aDefaultFileName+"\"");
aResponse.AppendHeader("Content-Length", aData.Length.ToString());
aResponse.ContentType = aContentType;
aResponse.BinaryWrite(aData);
aResponse.Flush();
aResponse.Close();
}
then on next PostBack, a new Session is created! Can't find any solutions
on google etc. :( Also (randomly) selecting 'open' comes up with 'file not
found'. I read that this can sometimes happen due to caching, but I'm not
setting any cachability on the page...
TIA
Simon
.
- Prev by Date: Re: Parsing an html/aspx file
- Next by Date: RE: Session IDs not unique?
- Previous by thread: findcontrol is nuts!
- Next by thread: Extensive Web Charting
- Index(es):
Relevant Pages
|