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
Name some asp objects?
How can you dynamically add user controls to a page?
What kind of data can be stored in viewstate?
What is the postback property in asp.net?
How dataadapter.fill works?
What are the new features added from ASP to ASP.NET?
What are the two Layouts supported by a Web form in ASP.NET?
What is the difference between user control an custom control?
Whats the difference between abstract factory pattern and factory pattern?
What is custom attribute? How to create?
What is the difference between Session and response.Redirect?
Can one dll file contains the compiled code of more than one .net language?
Does web services support data reader like pom project?
How to do parallel database export in remote SQL Server in ESSL time track. It is working for local server but not working for remote SQL Server
What is the good practice to implement validations in aspx page?