开发者

Jquery Asp.Net GridView Data Binding

开发者 https://www.devze.com 2022-12-23 03:25 出处:网络
How to call Method Jquery ? 开发者_StackOverflow中文版 public void GetGrid() { DataProviderDataContext db = new DataProviderDataContext();

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

精彩评论

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