title: jQuery post, posting to ashx page
body: <p>I am trying to save a user comment to my ashx web handler using jQuery <code>post</code>. The problem is that the form data does not seem to be posted, they got the value of <code>Nothing</code>.</p>
  
  <p>This is a simplified version of my <strong>jQuery code</strong>:</p>
  
  <pre><code>$(".thread_container input[type='button'][name='simplecomment_submit']").live("click", function(e) {
      var query = "?action=comment_save";
      var url = "script/ajax/myhandler.ashx" + query;
      $.post(url, $('form').serialize(), function(data) {
          if (data == "True") {
              // update comment list
          } else {
              // report error                        
          }
      })
  });
  </code></pre>
  
  <p>My <strong>ashx file</strong> looks something like this:</p>
  
  <pre><code>Public Class commenthandler : Implements IHttpHandler, IReadOnlySessionState
  
      Public Sub ProcessRequest(ByVal context As HttpContext) Implements IHttpHandler.ProcessRequest
          Dim action As String = context.Request.QueryString("action")
          Dim result As String = Boolean.FalseString
  
          Select Case action      
              Case "comment_save"
                  Dim comment As String = context.Request.Form("comment_message")
                  ' call save comment here
  
  
          End Select
  
          Return result
      End Sub
  End Class
  </code></pre>