开发者

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){}
});
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜