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 view state
5 Answers Microsoft, Siebel Systems,
Can we have 2 web config files?
What is difference between asp state management and asp.net state management?
In your web.config file which attribute of <Globalization> element identifies the default culture that will be used for web request?
How do we invoke queries from the application?
What is strong name and which tool is used for this ?
Define ViewState and how can it be used?
what is narmalization
what is CLR?
What is content place holder?
is it possible to use web site without web server from remote place?
1 Answers ABC, Mannar Company, Quadrant,
Mention the execution process for managed code?
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)