在JavaScript函数中将ASP.NET GridView绑定到Datatable [英] Binding ASP.NET GridView to Datatable in javascript function
本文介绍了在JavaScript函数中将ASP.NET GridView绑定到Datatable的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个gridview,我必须通过javascript绑定。
我通过使用ajax方法从服务器端到客户端获取数据表。
我想要通过javascript将返回的数据表绑定到网格视图。
请帮助我。
谢谢!
解决方案
document .getElementById( gvTest)。outerHTML = responseText;
看看这篇文章做了类似的事情。 (网格从javascript中的数据填充):
Web应用程序的ClientCallback自定义控件 [ ^ ]
>
< pre lang = Javascript>
I have a gridview which i have to bind through javascript.
I am getting the datatable from the server side to client side by using ajax method.
I want to bind the returned datatable to the grid view through javascript.
Please help me on the same.
Thanks !
解决方案
document.getElementById("gvTest").outerHTML = responseText;
Look at this article for something similar done. (Grid populated from data in javascript):
ClientCallback custom control for web applications[^]
<pre lang="Javascript">
这篇关于在JavaScript函数中将ASP.NET GridView绑定到Datatable的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文