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 |
How can we Deploy a website?
Can we throw exception from catch block ?
4 Answers Accenture, BirlaSoft,
web user and custom conrols
Explain the life cycle of an ASP .NET page.
How do you associate two or more validators with a single input control? What do you need to do to prevent space from being reserved for a validation control thatpasses its validation test?
What is difference between viewstate and session in asp net?
Define transparent caching with aop?
How to retrieve data row by row from a DataTable? Thanks In advance PriyaPP
define silverlight and advantages ?
What is viewstate? In which event of the page life cycle, is the viewstate available?
what are grid events ?code for dropdown inside grid and binding dropdown syntax
How dataadapter.fill works?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)