S
seven.su
I am trying to streaming back a xls file in page render event and this has been working properly in .net 1.1.
But now I got 'Server cannot set content type after HTTP headers have been sent' under 2.0. Interestingly,Response.WriteFile works fine in 2.0 but I don't know if 2.0 has fixed the notorious buffer problem in WriteFile function or not.
So, is it a bug in 2.0 or there is some other to manipulate Response string in Render event?
But now I got 'Server cannot set content type after HTTP headers have been sent' under 2.0. Interestingly,Response.WriteFile works fine in 2.0 but I don't know if 2.0 has fixed the notorious buffer problem in WriteFile function or not.
So, is it a bug in 2.0 or there is some other to manipulate Response string in Render event?