I need to download file from web server, without using save
as dialogue box. Can anyone help, thanks In advance.
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 |
Describe session handling in a webfarm, how does it work and what are the limits?
What is X-Path?
Define the types of configuration files.
hai to all. what is the procedure for " web hosting ".If you know please message me at "yoursguna@gmail.com". Thank u...
What are the different methods of session maintenance in asp.net?
hi all, can we sort the data set without using the gridview sort method
How many types of file extensions for razor views in ASP.Net MVC?
Give real time examples for polymorphism, encapsulation, inheritance..
what is the difference between assemblyinfo and webconfig files?
How can we pass info between 2 asp.net pages?
under which namespaces connection strings can be defined?
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,