kaveer
1/15/2017 - 3:52 AM

Download using WebClient

Download using WebClient

 private void DownloadXmlFile(string url)
        {
            filePath = string.Concat(basePath, siteName, fileExtension);

            using (WebClient webClient = new WebClient())
            {
                webClient.DownloadFile(url, filePath);
            }
        }