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

What is form submit?

0 Answers  


can we transfer data from one page to another page using viewstate if so how?if not y?

1 Answers   Patni,


Where is session data stored in asp net?

0 Answers  


What r Callbacks in ASP.NET?

1 Answers  


What is Difference between Callbacks and Postback in ASP.NET?

11 Answers  






Write a code for "RequiredFieldValidator" in java script

5 Answers   Wipro,


What is the difference between globalization and localization?

0 Answers  


Describe the disadvantage of cookies.

0 Answers  


Write the different features of a Thread and a Process?

0 Answers   Siebel,


Do I need to have the latest version of windows media player installed?

0 Answers  


If i have a web page, and one web user control, where in web page contains a text box, and web user control have check box, if i place a web user control in the webpage, when i check the check box, the out put should show it is checked or not. How we can do this?

1 Answers   CGI,


How you can stop the validation of ASP.NET controls from client side?

0 Answers   Sans Pareil IT Services,


Categories