Welcome Guest Search | Active Topics | Sign In | Register

Progress Bar Problem Options
kasam
Posted: Sunday, September 21, 2008 6:12:27 PM
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..

eo_support
Posted: Sunday, September 21, 2008 6:27:44 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,091
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=2113

Thanks


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.