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
How to manage different kinds of sessions in ASP.NET?
Explain difference between dataset and datareader?
How can we prevent browser from caching an aspx page?
What is data grid view in asp.net?
What is a form tag?
How does session work in asp net?
What are sql joins?
What is marshalling ? Is it a part of asp.net ?
What is asp.net ajax?
Describe the events in the life cycle of a web application.
Describe the method to create a permanent cookie?
What is the concept of view state in asp.net?
What is caching? Explain.
What is in a session cookie?
Distinguish between Server-side and Client-side code with its functionality?