I need to download file from web server, without using save
as dialogue box. Can anyone help, thanks In advance.



I need to download file from web server, without using save as dialogue box. Can anyone help, thank..

Answer / 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

More ASP.NET Interview Questions

Describe session handling in a webfarm, how does it work and what are the limits?

0 Answers   Siebel Systems,


What is X-Path?

2 Answers   Sherston,


Define the types of configuration files.

0 Answers  


hai to all. what is the procedure for " web hosting ".If you know please message me at "yoursguna@gmail.com". Thank u...

1 Answers  


What are the different methods of session maintenance in asp.net?

0 Answers  


hi all, can we sort the data set without using the gridview sort method

1 Answers   CGI,


How many types of file extensions for razor views in ASP.Net MVC?

0 Answers  


Give real time examples for polymorphism, encapsulation, inheritance..

2 Answers   L&T,


what is the difference between assemblyinfo and webconfig files?

1 Answers  


How can we pass info between 2 asp.net pages?

0 Answers  


under which namespaces connection strings can be defined?

4 Answers  


If you are using two select queries and retrieving data. how do you access second query's result set using data reader?

1 Answers   Cap Gemini, Keane India Ltd, MindSquare,


Categories