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 does asp.net work?
How do you define authentication in Web.Config?
2 Answers Accenture, BirlaSoft, IBM,
how many script manager controls are used in Ajax web page?
7 Answers CSC, Health Prime Services, TCS,
What is the result when the Web Form containing the following line is complied and executed? <asp:Button id=?thebutton? onClick=?theEvent? /> a) The button control is created; theEvent is the click event handler. b) Compiler error; the control must be set to runat=?server?. c) Compiler error; onClick is not a valid attribute. d) Runtime Exception; the control must be set to runat=?server?.
Explain the differences between Server-side and Client-side code?
12 Answers Cognizant, CTS, Siebel Systems, Visual Soft,
What are the different types of cookies in asp.net?
What is the compiled object?
What is difference b/w Data Grid in ASP.Net 1.1 and Gridview in 2.0
In which module you have worked in your .net project explain?
Explain significance of routing? : asp.net mvc
What is app_code folder in asp net?
How do you do validations. Whether client-side or server-side validations are better.?
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)