Groups > Asp .Net > Getting started with ASP.NET > no code execute after file download




no code execute after file download

no code execute after file download
Thu, 3 Apr 2008 15:54:50 +0000
hi all,AttachFileDownload(filename);

MultiView1.ActiveViewIndex = 0;

my  download function AttachFileDownload(filename); is running properly,

but after that :::MultiView1.ActiveViewIndex = 0;  this line of code not
execute,

 

 

i write that download function as

Response.ClearHeaders();

Response.ClearContent();Response.ContentType =
"application/octet-stream";Response.AddHeader("content-dispositio
n", "attachment; filename=" + filename);

Response.WriteFile(path);

Response.End();
Post Reply
about | contact