ASP.NET hello world AJAX post
<p>I keep getting a 500 with the following C#/jQuery. Any given implementation may not be right and thats not a huge issue. I'm just trying to get a hello world up. It works if the c# has no arguments but as soon as I try to recieve data it gives the 500.</p>

<pre><code>[WebMethod]
public static string Test(string s)
{
    // never gets here
}

$.ajax({
    type: "POST",
    url: "ajax.aspx/" + method,
    /*async: true,*/
    data: "{data:'" + data + "'}",
    contentType: "application/json; charset=utf-8",
    dataType: "json",
    success: function (data) {
        callback(data.d);
    }
});
</code></pre>

<p>latest attempt is this which still doesnt work:</p>

<pre><code>[WebMethod()]
public static string Test(string data)
{
    // never gets here
    return "hello world";
}

$.ajax({
    type: "POST",
    url: "ajax.aspx/Test",
    data: "data: {data:'abc'}",
    contentType: "application/json; charset=utf-8",
    dataType: "json",
    success: function (data) {
        alert("back");
    }
});
</code></pre>
