Upload Data : WebClient : Network C# Examples


C# Examples » Network » WebClient »

 

Upload Data









    
using  System;
using  System.Net;
using  System.Text;

class  MainClass
{
      public  static  void  Main(string[]  argv)
      {
            WebClient  wc  =  new  WebClient();

            string  data  =  "This  is  the  data  to  post";
            byte[]  dataarray  =  Encoding.ASCII.GetBytes(data);

            wc.UploadData("youraddress",  dataarray);
      }
}
    
   
  
   




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Network
» WebClient