Copy file from server to local disk......
-
hi all I have a .net web application. I need to copy a file present on the web server machine to a remote machine on the network. how is it possible? i tried using CopyTo(); methode. but not working. somebody told me that copy file is not possible in web application. but i think download file is possible only for website. then how is it done? please help me.
-
hi all I have a .net web application. I need to copy a file present on the web server machine to a remote machine on the network. how is it possible? i tried using CopyTo(); methode. but not working. somebody told me that copy file is not possible in web application. but i think download file is possible only for website. then how is it done? please help me.
P_Elza wrote:
i think download file is possible only for website. then how is it done?
Use
WebClient
class andWebClient.DownLoadFile()
methodAll C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions