Click here to Skip to main content
15,878,959 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
how is upload the files via FTP in Silverlight?

in code :

C#
private void btnFtpUpload_Click(object sender, RoutedEventArgs e)
        {
            var socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
            var args = new SocketAsyncEventArgs();
 
           
            args.RemoteEndPoint = new DnsEndPoint("localhost", 21);
           
          
           args.Completed +=
                delegate
                {
                    Thread.Sleep(1000);
                   SendString("username: xxx",
                               delegate
                               {
                                   SendString("password: xxx", delegate
                                   {
 
                                   }
                               }, socket);
                };
            socket.ConnectAsync(args);
        }



In part that is displayed with Underline font an error occurs!

[Edit] The error occurs were the delegate is added: args.Completed[/Edit]

Please help me
Posted
Updated 4-Aug-12 8:34am
v3

1 solution

This is going to sound more complicated that needs be, becouse it is possible, but a lot of work:
http://forums.silverlight.net/t/180751.aspx/1[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900