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
In order to bind the data from a data source to the Repeater control what property is set and what method must you call in your code,?
What is data reader in asp.net?
How can we apply themes to an asp.net application?
What are the various types of validation controls provided by asp.net?
How do you remove duplicates without using remove duplicate stage?
What is the most appropriate lifetime for a database connection/orm context in an asp.net mvc application? : Asp.Net MVC
Mention the execution process for managed code?
How can you implement encapsulation in asp.net?
What are the disadvantages of asp.net?
Why is asp.net so popular?
What is the difference between ldap and active directory?
What is the purpose of url encoding?
Describe the method to create a permanent cookie?
What is the difference between ASP.NET Webforms and ASP.NET MVC?
Explain security types in asp.net?