WindowsPhone Silverlight (8.0 & 8.1) : Upload files to Ftp Server (C# - XAML)

Introduction:I am very happy to write an article about FTP server access from windows phone programming using, there are no direct APIs available for leveraging FTP services in a Windows phone app.

C# (377.0 KB)
230 times
Add to favorites
E-mail Twitter Digg Facebook

Solution explorer

using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;
using WindowsPhoneFTP.Resources;

namespace WindowsPhoneFTP
    public partial class MainPage : PhoneApplicationPage
        // Constructor
        public MainPage()
        private void BtnSubmit_Click(object sender, RoutedEventArgs e)
        private async void UploadFile_FTP()
            FtpClientClass ObjFtpClientClass = new FtpClientClass();
            var Result = await ObjFtpClientClass.UploadFileAsync("Hi My FileText", "MyFile");
            TbckUploadStatus.Text ="File upload: "+Result;