title: passing a parameter from jQuery ajax call to C# method in web forms
body: <p>I'm tring to pass a value I pull from a data-attribute in my markup to a C# method using jQuery Ajax. In this example, the value for QuestionNumber results in a 1. EMHQQuestion is an enum with values 1 through 15. I expect my C# method DeleteCondition to receive that 1 but instead I get a 500 internal server error: "Invalid web service call, missing value for parameter: 'questionNumber'.</p>
  
  <p>Any suggestions?</p>
  
  <pre><code>function DeleteConditions() {
      var QuestionNumber = $('.noRadioButton').data('questionnumber');
      $.ajax({
          url: "mhqpreinterview.aspx/deletecondition",
          type: "POST",
          contentType: "application/json; charset=utf-8",
          datatype: "json",
          questionNumber: QuestionNumber
      });
      Dialog.dialog('close');
  }
  </code></pre>
  
  <p>..</p>
  
  <pre><code>[WebMethod(EnableSession = true)]
  public static void DeleteCondition(EMHQQuestion questionNumber)
  {
      //stuff
  }
  </code></pre>