Welcome Guest Search | Active Topics | Sign In | Register

eo.web error when I try to load or open a text file (.txt) Options
FCruz
Posted: Friday, October 28, 2011 12:06:51 PM
Rank: Member
Groups: Member

Joined: 6/4/2010
Posts: 16
Hi,

when I run the next code lines in a procedure that must open a text file the Eo.Web control sends me an error message.


Code: Visual Basic.NET
Response.Buffer = True
        Response.ContentType = "application/octet-stream"        
        Response.AddHeader("Content-Disposition", "attachment; filename=""" & sNombreArchivo & """")
        Response.ContentEncoding = Encoding.Default
        Response.TransmitFile(sPath.Replace("$$", "\"))
        Response.Flush()
        Response.Close()

the line where the error ocurred is Response.Close() and the callbackpanel dont get back.

Any idea ?

Thanks.
eo_support
Posted: Friday, October 28, 2011 12:33:48 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

You can not send files down through CallbackPanel. It has to be a regular post back.

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.