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 the life cycle of an asp.net page?

0 Answers  


How many types of validation controls are provided by ASP.NET?

8 Answers  


how we Creating a Web Service

1 Answers   Mind Tree,


What can we do with asp.net?

0 Answers  


Security types in ASP/ASP.NET? Different Authentication modes?

4 Answers   QuadLabs Technologies,






When Cookies are expired in ASP.NET?

0 Answers   Sans Pareil IT Services,


What is the use of HttpHandlers? When to use this?

0 Answers   Wipro,


What is the difference between abstract class vs interface? Can give me the real time examples?

0 Answers  


Who creates jsessionid?

0 Answers  


What is http post and http get?

0 Answers  


What do you mean by serialize?

0 Answers  


Disable Session State at the Application Level

2 Answers  


Categories