Asp.Net(C#) Jquery Ajax with WebMethod In Public Method Call
<p><strong>Aspx Page:</strong></p>

<pre><code>$(document).ready(function() {

            $("#btnn").click(function() {
                $.ajax({
                    type: "POST",
                    url: "TestPage.aspx/emp",
                    data: "{}",
                    contentType: "application/json; charset=utf-8",
                    dataType: "json",
                    success: function(msg) {
                    }
                });
            });
        });
</code></pre>

<p><strong>CodeBehind:</strong></p>

<pre><code>public void grdload()
    {
        GridView1.DataSource = GetEmployee("Select * from Employee");
        GridView1.DataBind();
    }

[WebMethod]
    public static void emp()
    {
        TestPage re = new TestPage();
        re.grdload();
    }
</code></pre>

<p>I Can't Gridview Data Load ? How To Make GridView Data Load?</p>

<p>Thank You</p>
