Click here to Skip to main content
15,895,142 members
Home / Discussions / Web Development
   

Web Development

 
GeneralTrap window close event for all kinds of browsers Pin
GoldenStar16-Mar-05 1:19
GoldenStar16-Mar-05 1:19 
GeneralRe: Trap window close event for all kinds of browsers Pin
Ted Ferenc16-Mar-05 22:02
Ted Ferenc16-Mar-05 22:02 
GeneralCombine values from different pages Pin
Anonymous15-Mar-05 17:33
Anonymous15-Mar-05 17:33 
GeneralRe: Combine values from different pages Pin
JKroschel21-Mar-05 7:27
JKroschel21-Mar-05 7:27 
Generalcaret position of a ContentEditable DIV Pin
Anonymous15-Mar-05 3:38
Anonymous15-Mar-05 3:38 
Generaljavascript unspecified error after file download Pin
suzyb15-Mar-05 0:43
suzyb15-Mar-05 0:43 
GeneralRe: javascript unspecified error after file download Pin
JKroschel21-Mar-05 6:57
JKroschel21-Mar-05 6:57 
GeneralRe: javascript unspecified error after file download Pin
suzyb22-Mar-05 23:09
suzyb22-Mar-05 23:09 
The javascript is in a js file but I created a small test with the javascript in the page and it didn't make any difference.

I think it may be due to the fact that the download happens on a postback. In my click event for my button I set the following properties of the response then read the file and BinaryWrite the file to it.

HttpContext.Current.Response.Buffer = true;
HttpContext.Current.Response.Clear();
HttpContext.Current.Response.Charset = "";
HttpContext.Current.Response.ContentType = ContentType;
HttpContext.Current.Response.AddHeader( "content-disposition", "attachment; filename=" + DownloadFileName );

Simply adding an anchor that points to the file doesn't cause the error however the file is created dynamically so thats not really an option.

SuzyB

If I had a better memory I would remember more.
GeneralRe: javascript unspecified error after file download Pin
JKroschel23-Mar-05 4:38
JKroschel23-Mar-05 4:38 
Generalplzz chk this codings Pin
Bhuvanish14-Mar-05 13:31
Bhuvanish14-Mar-05 13:31 
GeneralRe: plzz chk this codings Pin
Roger Wright19-Mar-05 6:41
professionalRoger Wright19-Mar-05 6:41 
GeneralJscript with oracle Pin
Bhuvanish14-Mar-05 13:17
Bhuvanish14-Mar-05 13:17 
GeneralRe: Jscript with oracle Pin
Christian Graus15-Mar-05 15:38
protectorChristian Graus15-Mar-05 15:38 
GeneralRe: Jscript with oracle Pin
JKroschel21-Mar-05 6:55
JKroschel21-Mar-05 6:55 
GeneralList Pin
Yulianto.13-Mar-05 16:18
Yulianto.13-Mar-05 16:18 
GeneralRe: List Pin
JKroschel21-Mar-05 6:53
JKroschel21-Mar-05 6:53 
GeneralRe: List Pin
Yulianto.21-Mar-05 15:12
Yulianto.21-Mar-05 15:12 
General.net or php Pin
ABBASI_RA13-Mar-05 15:17
ABBASI_RA13-Mar-05 15:17 
GeneralRe: .net or php Pin
raouls13-Mar-05 19:53
raouls13-Mar-05 19:53 
GeneralRe: .net or php Pin
DavidNohejl14-Mar-05 6:23
DavidNohejl14-Mar-05 6:23 
GeneralRe: .net or php Pin
raouls15-Mar-05 1:22
raouls15-Mar-05 1:22 
GeneralRe: .net or php Pin
DavidNohejl15-Mar-05 3:09
DavidNohejl15-Mar-05 3:09 
GeneralRe: .net or php Pin
alex.barylski16-Mar-05 12:53
alex.barylski16-Mar-05 12:53 
GeneralRe: .net or php Pin
DavidNohejl18-Mar-05 1:09
DavidNohejl18-Mar-05 1:09 
GeneralRe: .net or php Pin
JKroschel21-Mar-05 6:49
JKroschel21-Mar-05 6:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.