S
Steven
Hello
In my asp.net application,I will be showing some PDFs which the user can
download. When the user clicks on any PDF I will be downloading the related
file and I will be showing the related portion of the map in the image box.
When the user clicks on any file, the ImageBox is getting the correct URL
but its not showing. If I disable the Downloadfile function, the image box
is getting and showing the correct URL. How can I solve this problem
here is my download file function:
public void DownloadFileToClientPC()
{
try
{
string FullPathOfTheFile = "C:\\TestFile.tif" ;
System.IO.FileInfo FileToDownLoad = new
System.IO.FileInfo(FullPathOfTheFile);
this.Page.Response.Clear() ;
this.Page.Response.ContentType = "application/octet-stream" ;
this.Page.Response.AddHeader("content-disposition",
"attachment; filename="+ FileToDownLoad.Name);
this.Page.Response.WriteFile(FileToDownLoad.FullName) ;
this.Page.Response.Flush() ;
this.Page.Response.Close() ;
}
catch(Exception ex)
{
}
}
Thanks
In my asp.net application,I will be showing some PDFs which the user can
download. When the user clicks on any PDF I will be downloading the related
file and I will be showing the related portion of the map in the image box.
When the user clicks on any file, the ImageBox is getting the correct URL
but its not showing. If I disable the Downloadfile function, the image box
is getting and showing the correct URL. How can I solve this problem
here is my download file function:
public void DownloadFileToClientPC()
{
try
{
string FullPathOfTheFile = "C:\\TestFile.tif" ;
System.IO.FileInfo FileToDownLoad = new
System.IO.FileInfo(FullPathOfTheFile);
this.Page.Response.Clear() ;
this.Page.Response.ContentType = "application/octet-stream" ;
this.Page.Response.AddHeader("content-disposition",
"attachment; filename="+ FileToDownLoad.Name);
this.Page.Response.WriteFile(FileToDownLoad.FullName) ;
this.Page.Response.Flush() ;
this.Page.Response.Close() ;
}
catch(Exception ex)
{
}
}
Thanks