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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the difference between web user control and web custom control?

607


how to debug web services on consumer side?

674


List of words of preprocessor in .net?

604


What is session object? Describe in detail.

659


Explain what are the advantages of asp.net mvc framework? : asp.net mvc

603






From which base class all web forms are inherited?

599


What is the default timeout for a cookie?

653


there is two functions function a and function b like fun a(){.... ..... } fun b() { } in function b i write the coding to add two numbers and i need to dispaly the sum result in function a with out using global variable. how we do?

2378


What are HTTP handlers in ASP.NET?

664


What are the parts of an http response?

589


What is the difference between dispose() and finalize()?

586


What is the basic difference between asp and asp.net?

598


What does asp in asp.net stand for?

625


What is the maximum amount of memory any single process on windows can address?

621


Why should i prefer JSP over asp.net or any other web development language..??

1545