call method in code behind from JQuery
<p>I am trying to execute a method in ASP.NET from Jquery</p>

<pre><code>$.ajax({
        type: "POST",
        contentType: "application/json; charset=utf-8",
        url: "MyMessages.aspx?id=66&amp;epslanguage=sv/test",
        data: "{}",
        dataType: "json",
        error: function(xhr, err) {
        alert("readyState: " + xhr.readyState + "\nstatus: " + xhr.status);
        alert("responseText: " + xhr.responseText);
            },
        success: function() {
            alert("it works" );
        }
    })
</code></pre>

<p>code behind:</p>

<pre><code>    [WebMethod]
    protected void test()
    {
        test.Text = "works";
    }
</code></pre>

<p>I get errormessage redayState: 4 and status 200 when I do this. I don't understand the problem. I am vey new at this. :)</p>
