title: Pass variable from jQuery to WebMethod (Authentication failed)
body: <p>I create a new WebForms Application in VS2013. I didn't change anything and created a simple page. I want to load this table on client side when user clicks button</p>
  
  <pre><code>&lt;table id="tblHelpRow"&gt;
          &lt;thead&gt;
              &lt;tr class="title"&gt;
                  &lt;th&gt;F2
                  &lt;/th&gt;
                  &lt;th&gt;F3
                  &lt;/th&gt;
              &lt;/tr&gt;
          &lt;/thead&gt;
          &lt;tbody id="helpRowBody"&gt;         
              &lt;%=MyRow %&gt;  
          &lt;/tbody&gt;
      &lt;/table&gt;
  &lt;asp:LinkButton ID="lnkEdit" runat="server" onclick="fnEdit();" /&gt;
  </code></pre>
  
  <p>This is my script code:</p>
  
  <pre><code>function fnEdit() {
      BindGridView();
  };
  function BindGridView() {
      rowid = {rowID:2};
          $.ajax({
              type: "POST",
              url: "Default.aspx/GetRow",
              contentType: "application/json; charset=utf-8",
              data: param,
              dataType: "json",
              success: function (data) {
                   alert(data);
              }
          });
  }
  </code></pre>
  
  <p>I have a WebMethod in my code-behind which stores result in the public property. DataSource I store in session, but rowID I need to pass from jquery.</p>
  
  <pre><code>        [WebMethod]
          public static string GetRow(int rowID)
          {
                  DataTable dt = (DataTable)HttpContext.Current.Session["SourceData"];
                  MyRow = "&lt;tr&gt;" +
                  "&lt;td&gt;" + dt.Rows[rowID]["F2"].ToString() + "&lt;/td&gt;" +
                  "&lt;td&gt;" + dt.Rows[rowID]["F3"].ToString() + "&lt;/td&gt;" +
                  "&lt;/tr&gt;";
              return "done";
      }
  </code></pre>
  
  <p>But I don't get any result. When I have put the breakpont in success I got "Authentication failed" error and this webmethod wasn't executed. What's the problem? I didn't change ant Authentication settings.</p>