Rank: Newbie Groups: Member
Joined: 9/21/2008 Posts: 1
|
Hi,
I am getting an exception "Server cannot append headers after HTTP headers have been set". while using the Progress Bar.
I am using the Progress bar in one my page, where I am trying to download the data in to excel sheet.
I have written the code to download the excel in this event, downloading process takes a while for me..
ProgressBar1_RunTask(ByVal sender As System.Object, ByVal e As EO.Web.ProgressTaskEventArgs) Handles ProgressBar1.RunTask
Response.ClearContent() Response.AddHeader("Content-Disposition", "filename=" & mcampName & ".xls") ''''''I am getting error in this line Response.ContentType = "application/excel" Response.WriteFile(mfilename) Response.Flush() Response.Close()
Thanks..
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,193
|
Hi, Please read the comment in the sample. Also the follow post should help you: http://www.essentialobjects.com/Forum/Default.aspx?g=posts&t=2113Thanks
|