RakeshBhandari
asked on
download a file on server
i have a web application which runs on a particular server
this application is made using asp.net with c# codebehind
whenever a client accesses a page, i want the server to download a file from another server
example:
application hosted on server A
when client C access the application on server A, i want server A to download a file from server B
currently what is happening is that the file is getting downloaded on the client's machine itself
please help
this application is made using asp.net with c# codebehind
whenever a client accesses a page, i want the server to download a file from another server
example:
application hosted on server A
when client C access the application on server A, i want server A to download a file from server B
currently what is happening is that the file is getting downloaded on the client's machine itself
please help
WebClient Client = new WebClient();
Client.DownloadFile("http://www.bloombergutv.com/globalindices.xml", "c:\\Inetpub\\wwwroot\\Connect2\\globalindices.xml");
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks!
http://forums.asp.net/t/1540028.aspx
http://www.devarticles.com/c/a/ASP.NET/HTTP-File-Download-Without-User-Interaction-Using-.NET/