views:

329

answers:

1

Hi all;

<form id="form1" runat="server">
    <div>
        <asp:Button ID="Button1" runat="server" Text="Button" />
        <asp:GridView ID="GridView1" runat="server">
        </asp:GridView>
    </div>
</form>

How to call Method Jquery ?

public void GetGrid()
        {
            DataProviderDataContext db = new DataProviderDataContext();
            GridView1.DataSource = db.Employees.ToList();
            GridView1.DataBind();
        }

I do not know English pls help

A: 

Hi Fir!

This is Calling Page Method into Jquery Ajax

$.ajax({ type:"POST", beforeSend:function(xhr), contentType: "application/json; charset=utf-8", url:"your page name"/"method name", data:"{}", dataType: "text", success: function(response) { //do something; }, error: function(XMLHttpRequest, text, error){} });

CyberArchitect