dotnetgirl Posted December 1, 2003 Posted December 1, 2003 Hello EveryOne! I am using 'Webclient.DownloadData' method in my page to allow user to download a file. But it's getting executed without doing anything! Can anyone tell me what can be the problem? This is to let the user to download .Msi file.. Reply soon. Thanks! Quote
Moderators Robby Posted December 1, 2003 Moderators Posted December 1, 2003 what does your code look like? Quote Visit...Bassic Software
dotnetgirl Posted December 5, 2003 Author Posted December 5, 2003 My Code Hello Robby! i m making a delay in posting my code but i am still struck at the problem. It goes like this : ... string fileName = "setup.msi"; string remUri = Server.Mappath("download\\"); string mypath; WebClient wb = new WebClient(); mypath = remUri + fileName; wb.DownloadFile(myPath, fileName); ... i m getting no exception at DownloadFile call! What's the problem? Thanks. Quote
R4PM0NK3Y Posted December 7, 2003 Posted December 7, 2003 I am using this code to download a file from the internet, and it works fine: Dim wc As New System.Net.WebClient wc.DownloadFile("http://www.interneturl.com", "C:\Local Path") As simple as that! Quote
dotnetgirl Posted December 8, 2003 Author Posted December 8, 2003 Thanks for reply! i am done with the problem, but without using the Webclient class. i m just specifying the full url of my .Msi file that i want for download. On clicking the url , it's opening dialog to open or save the file that is what i wanted to do. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.