Jquery Asp.Net GridView Data Binding
How to call Method Jquery ?
开发者_StackOverflow中文版public void GetGrid()
{
DataProviderDataContext db = new DataProviderDataContext();
GridView1.DataSource = db.Employees.ToList();
GridView1.DataBind();
}
I do not know English pls help
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){}
});
精彩评论