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
Explain the difference between web user control and web custom control?
how to debug web services on consumer side?
List of words of preprocessor in .net?
What is session object? Describe in detail.
Explain what are the advantages of asp.net mvc framework? : asp.net mvc
From which base class all web forms are inherited?
What is the default timeout for a cookie?
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?
What are HTTP handlers in ASP.NET?
What are the parts of an http response?
What is the difference between dispose() and finalize()?
What is the basic difference between asp and asp.net?
What does asp in asp.net stand for?
What is the maximum amount of memory any single process on windows can address?
Why should i prefer JSP over asp.net or any other web development language..??