jQuery Ajax in asp.net
<p>I'm trying to call a static method in c# using jQuery Ajax. I've tried before but now it is not working. I get error status as 200 Ok. Here is my code:</p>

<pre><code>$("#btnSample").live("click", function()
    {
        $.ajax({
                type : "POST"
            ,   data : {}
            ,   url : "jQueryAjax.aspx/SampleMethod"
            ,   contentType : "application/json; charset=utf-8"
            ,   dataType : "json"
            ,   success : function(msg)
            {
                alert("Success : "+msg);
            }
            ,   error : function(error)
            {
                $("#lblSample").text(error.status);
            }
        });
    });
</code></pre>

<p>My Server-side code is:</p>

<pre><code>[WebMethod]
public static string SampleMethod()
{
    return "jQuery is Super";
}
</code></pre>

<p>aspx for Button:</p>

<pre><code>&lt;input type="button" id="btnSample" runat="server" value="Show What" /&gt;
</code></pre>
