Click here to Skip to main content
13,199,318 members (66,939 online)
Rate this:
Please Sign up or sign in to vote.
See more:
how is upload the files via FTP in Silverlight?

in code :

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 +=
                   SendString("username: xxx",
                                   SendString("password: xxx", delegate
                               }, socket);

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 4-Aug-12 7:34am
Updated 4-Aug-12 8:34am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

This is going to sound more complicated that needs be, becouse it is possible, but a lot of work:[^]

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01 | 2.8.171020.1 | Last Updated 4 Aug 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100