在网格视图中使用Ajax进行数据绑定 [英] Data Binding using Ajax in Grid view

查看:78
本文介绍了在网格视图中使用Ajax进行数据绑定的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述







我想用普通的ajax将数据绑定到gridview中。在没有使用dot net ajax控件的意义上,我想将数据绑定到gridview中。请帮助我。





谢谢。

解决方案

以下文章演示从服务器端获取数据并在网格中显示的方法之一: ClientCallback自定义控件对于Web应用程序 [ ^ ]



上面的文章使用Callback(AJAX的另一个选项)。如果您需要使用AJAX,逻辑仍然是调用服务器端进行数据更改的方式。

  document  .getElementById( < span class =code-string> gvTest)。outerHTML = responseText; 


Hi


I want bind the data into the gridview using normal ajax. That in the sense without using dot net ajax controls, i want to bind data into the gridview. Kindly help me.


Thanks.

解决方案

Following article demonstrates one of the way to fetch data from server side and show in grid: ClientCallback custom control for web applications[^]

Above article uses Callback (another option to AJAX). If you need to use AJAX, logic remains the same just the way to call server side for data changes.

document.getElementById("gvTest").outerHTML = responseText;   


这篇关于在网格视图中使用Ajax进行数据绑定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆