Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > vnd.ms-excel Session State Expires

Reply
Thread Tools

vnd.ms-excel Session State Expires

 
 
Jay Balapa
Guest
Posts: n/a
 
      12-11-2006
Hello,

Iam dynamically trying to send my html table report to a excel spread
sheet, by setting following headers. Basically user picks a report name from
a aspx page and report type ("EXCEL"). I clear aspx page of all controls and
use Response.Write to author a HTML page.

Response.ContentType = "application/vnd.ms-excel";

Response.ContentEncoding = System.Text.Encoding.UTF8;

Response.AddHeader("Content-Disposition","filename="+heading+".xls");

After the first report has been generated and if we use the back button to
create another report. ASP.NET redirects the user to the login.aspx page
which is the default redirect page when session expires. ie. Login.aspx
opens in excel.

It looks like the session state expires, we are using instate session,
cookieless session state. The correct reponse would be basically the second
should just open in excel overwriting the oldone instead of redirecting.
This was the default behavior until few months we dont know what happened.

Any Help will be appreciated.

Thanks.

jay


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can we restore View State after Session Expires? rajmgopal ASP .Net Mobile 2 06-19-2006 05:24 PM
Unable to make the session state request to the session state server Maciek ASP .Net 0 09-15-2005 08:49 PM
Unable to serialize the session state. Please note that non-serializable objects or MarshalByRef objects are not permitted when session state mode is 'StateServer' or 'SQLServer'. Mike Larkin ASP .Net 1 05-23-2005 12:33 PM
Unable to make the session state request to the session state server Not Liking Dot Net Today ASP .Net 0 04-21-2004 11:54 AM
unable to make the session state request to the session state server shamanthakamani ASP .Net 1 11-20-2003 04:51 AM



Advertisments