G
Guest
private void DownloadFile(string fName)
{
string msg="download done";
/*
System.IO.fInfo fInfo = new System.IO.fInfo(fName);
Response.Clear();
Response.AddHeader("Content-Disposition", "attachment; filename=" +
fInfo.Name);
Response.AddHeader("Content-Length", fInfo.Length.ToString());
Response.ContentType = "application/octet-stream";
Response.WriteFile(fInfo.FullName);
*/
this.myLabel.ForeColor=System.Drawing.Color.Red;
this.myLabel.Text=msg;
}
When I remove commented section, this method does not show the message in
myLabel on my page, where is the problem?
{
string msg="download done";
/*
System.IO.fInfo fInfo = new System.IO.fInfo(fName);
Response.Clear();
Response.AddHeader("Content-Disposition", "attachment; filename=" +
fInfo.Name);
Response.AddHeader("Content-Length", fInfo.Length.ToString());
Response.ContentType = "application/octet-stream";
Response.WriteFile(fInfo.FullName);
*/
this.myLabel.ForeColor=System.Drawing.Color.Red;
this.myLabel.Text=msg;
}
When I remove commented section, this method does not show the message in
myLabel on my page, where is the problem?