Thursday, April 21, 2005

Raising File Save Dialog Box on Client Side using C# and ASP.NEt

Hey Fellas! As I promised to you, this is the sample project to Raise a File Save Dialog Box for known MIME Types like Images, Doc Files, PDF, etc. on Client Side.

Click Here to Get the Source Project. If you have any question please feel free to contact me.
Ref. MIME Type by Content Type

Here is the Code to use the Component :

1. Add a Reference to ForceDownload.dll

2. Add "using ESS.APP.WebUtil"

3. Add this snippet to the Event on which you want to Force the Download


ForceDownload fdl = new ForceDownload();
fdl.FilePath = Server.MapPath(Request.ApplicationPath +"
\\filename.ext");
fdl.Download();

No comments: