I need to download file from web server, without using save
as dialogue box. Can anyone help, thanks In advance.
Answer Posted / kuldeep
for save as dialoge box use this code
Response.ClearContent();
//give file type
Response.ContentType = "video/.wmv";
Response.AddHeader("content-disposition", "attachment;
filename=download.wmv");
string filename1 = @"E:\xyz.wmv";
Response.TransmitFile(filename1);
but if you need to download file without user interaction
then please refer to this link
http://www.devarticles.com/c/a/ASP.NET/HTTP-File-Download-
Without-User-Interaction-Using-.NET/
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Explain the asp.net mvc request life cycle? : asp.net mvc
How long the items in ViewState exists?
Where session variables are stored?
Define page fragment caching?
What is the difference between file-based dependency and key-based dependency?
How you will manage the state of ASP.NET controls?
Differentiate between early binding and late binding.
How do I create a web form?
Explain ViewState?
Give a few examples of page life cycle events.
What are type/key pairs in client script registration?
What is enableviewstatemac in asp net?
What are the steps to follow to host a web application on a web server?
What is a pixel url?
Define static function?