对了,我只是要用户名和密码那段程序。

解决方案 »

  1.   

    难道就没有一个人能回答这个问题吗?高手都哪去了?还是没有高手了?
      

  2.   

    不知道下面的代码是否能解决你的问题?另外,据我所知,.net runtime V1.1中暂时还没有对FtpClient的支持。///////////////////////////////////////////////////////////////////////
    WebClient myWebClient = new WebClient();
    //你要的可能是下面这2行代码
    NetworkCredential sc = new NetworkCredential(username, password, Domain);
    myWebClient.Credentials = sc;
    // Upload the file to the URL using the HTTP 1.0 POST.
    byte[] responseArray = myWebClient.UploadFile(uriString,"POST",fileName);
      

  3.   

    好像用不了,有谁还能写的具体些吗?最好是在那能找到相关的例子?谢谢!