I need to download file from web server, without using save
as dialogue box. Can anyone help, thanks In advance.
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 |
What is the life cycle of an asp.net page?
How many types of validation controls are provided by ASP.NET?
how we Creating a Web Service
What can we do with asp.net?
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?
What is the difference between abstract class vs interface? Can give me the real time examples?
Who creates jsessionid?
What is http post and http get?
What do you mean by serialize?
Disable Session State at the Application Level