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
What are the new data controls in asp.net 2.0?
Do session use cookies in asp net?
What is asp.net version?
What are ASHX files?
In which event are the controls fully loaded?
How Can assign alias name for ASP.NET Web API Action?
Whats the difference between abstract factory pattern and factory pattern?
Explain the function of new view engine in asp.net? : asp.net mvc
Define repository pattern in mvc.net? : asp.net mvc
What are the differences between application object and session object?
About CLR, reflection and assemblies?
What are the data controls available in asp.net?
Is asp.net a programming language?
How will create assesblies at run time?
What is the function of new view engine in asp.net? : asp.net mvc