471,305 Members | 1,233 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,305 software developers and data experts.

Use this to open file

Use like this

private void OpenFiles(string Filepath)
{
FileInfo file = new System.IO.FileInfo(Filepath);
Response.AddHeader("Content-Disposition", "attachment; filename=" + file.Name);
Response.WriteFile(Filepath);
}

Thanks
http://www.interviewsworld.com

Aug 13 '08 #1
1 991
On Aug 13, 12:02*pm, Interviews World wrote:
Use like this

private void OpenFiles(string Filepath)
{
FileInfo file = new System.IO.FileInfo(Filepath);
Response.AddHeader("Content-Disposition", "attachment; filename=" + file.Name);
Response.WriteFile(Filepath);

}

Thankshttp://www.interviewsworld.com
What is this???

-Cnu
Aug 13 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by Charles F McDevitt | last post: by
6 posts views Thread by Dino Buljubasic | last post: by
6 posts views Thread by qysbc | last post: by
6 posts views Thread by Moumen VB.NET 2003/2005 Developer | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.