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

Can the action attribute of a server-side tag be set to a value and if not how can you possibly pass data from a form page to a subsequent page?

1 Answers  


What is session id in web application?

0 Answers  


what is the difference b/w .net 1.1 and 2.0 ?

2 Answers   Polaris,


How to disable SOAP1.2 in Web Services?

1 Answers  


Describe the diffeerence between inline and code behind - which is best in a loosely coupled solution?

0 Answers  






What is difference between session and cookies?

0 Answers  


Explain about secure socket layer?

0 Answers  


How to check null values in dataset ?

6 Answers   Digital GlobalSoft,


Explain how can we inherit a static member?

0 Answers  


Hi, I am developing an application (quiz engine) using C# in Dot net. My problem is I am designing the selction option using radio button. So, I want to retrive the data from the database to the radiobutton option. And also please tell me the how to compare the correct answer option with Answer selected by the users. If any body knows or have done this before please Help me out. My mail id is get_rome@yahoo.co.in. Table format: Question Id Queston Option1 Option 2 Option 3 Option 4 Correct answer 1 What is ur name? My name is ….. My name …. My name …. My name …. My name is tom

4 Answers  


how to use html code in asp source code?

1 Answers  


If Instancing = Single use for ActiveX Exe, how will this be executed if there are 2 consecutive client requests ?

0 Answers   DELL,


Categories