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 |
Does asp.net still recognize the global.asa file?
What is SQL injection?
What is the use of mcommand ? mcommand.fill(ds,"orderdetails");
Can you edit data in the Repeater control?
What is csrf attack in asp.net?
Why would anyone need to implement their own hashtable or linked list?
Describe the difference between inline and code behind?
What is difference between asp state management and asp.net state management?
Descrie about response.buffer and repsonse.flush ?
Explain MVC model binders?
How can we create custom controls in asp net?
What is an asp.net validator? And, mention its types.
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)