title: How to convert HTML(JSON, Ajax ) into C# WinForm?
body: <p>I'd like to convert following HTML(json, ajax) Code in C# Winform application.  </p>
  
  <p>I'll try it by using JSON.Net, but I'm not familiar with C# WinForm. 
  I want to binding ajax result value after the user click a button. 
  How do I this?? </p>
  
  <p>html code following that : 
  Thank you.  </p>
  
  <hr>
  
  <pre><code>// format string 
  function J2String(object) {
      var results = [];
      for (var property in object) {
  
          var value = object[property];
  
          if (value != null){
              results.push(property.toString() + ': ' + value ); 
          } 
      }                            
      return '{' + results.join(', ') + '}';
  }
  
  // format ajax result data 
  formatstring = function (text) {
      if (arguments.length &lt;= 1) return text; 
  
      for (var i = 0; i &lt;= arguments.length - 2; i++) {
          text = text.replace(new RegExp("\\{" + i + "\\}", "gi"), 
                 arguments[i + 1]);
      }
      return text;
  }
  
  // return data [ GET method ]  
  function GetAjaxData(){
      RcvData.value = "";
      $.ajax({
          url:"http://127.0.0.1", 
          type:"GET",
          data: { "REQ": formatstring ("AA^^1000^^^^23^1234567^W1234567890^^00000081") },
          dataType: "jsonp",
          jsonp: "callback",
          success: function(data){
              RcvData.value = J2String(data); 
          }
      });
  }  
  &lt;body&gt; 
  Value : &lt;input type="text" style="width:80%" id="RcvData"&gt;&lt;br/&gt;
  &lt;form name="tform" method="post"&gt;
  &lt;input type="button" value="Send"  onClick="GetAjaxData()" &gt;
  &lt;/body&gt; 
  </code></pre>
  
  <hr>