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
When using the Pager object, inorder to know which page to go, which property you have to set to grid?
Explain asp.net web forms.
What are the session management techniques asp net?
Difference between .NET and previous version?
What is asp.net web pages?
What is asp short for?
How do you sign out from forms authentication?
Is there any limit for query string? Means what is the maximum size?
What is .net framework and what are the main components of it?
How to implement Authentication and Authorization?
What is state management techniques in asp.net?
List some of the important session state modes of asp.net.
What is a web based system?
Can any body provide me the sample web application in asp.net
What is the difference between an htmlinputcheckbox control and an htmlinputradiobutton control?