title: how get html post data and pass to a webservice?
body: <p>I have some knowledge on using WCF, but I don't know how to construct it and be able to receive data from HTML-POST.<br>
  Inside my sample Html is this:  </p>
  
  <pre><code>&lt;html&gt;
  &lt;body&gt;
      &lt;form method="POST" action="#"&gt;
          Name:   &lt;input type="text" id="txtName" value="" /&gt;&lt;br /&gt;
          Age:    &lt;input type="text" id="txtAge" value="" /&gt;&lt;br /&gt;
          Address:&lt;input type="text" id="txtAddress" value="" /&gt;&lt;br /&gt;
          &lt;input type="submit" value="Send" /&gt;
      &lt;/form&gt;
  &lt;/body
  &lt;/html&gt;  
  </code></pre>
  
  <p>And inside my WCF is:  </p>
  
  <pre><code>namespace WCF
  {
      [ServiceContract]
      [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
      [ServiceBehavior(InstanceContextMode = InstanceContextMode.PerCall)]
      public class User
      {
          WebInvoke(UriTemplate = "", Method = "POST")]
          public DataFromHTMLPost(UserData instance)
          {
              throw new NotImplementedException();
          }
      }
  }
  </code></pre>
  
  <p>Can anyone give some suggestion on how could I pass the data from HTML-POST to webservice?<br>
  Or give me some links as reference. Thanks a lot!</p>