且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

通过隐藏字段值如何使用jquery在ASP.NET中绑定gridview

更新时间:2023-02-11 21:01:28

GridView 是一个服务器端数据控件,它可以让你在服务器上操作时更轻松因为您可以利用它提供的内置功能。将客户端代码与服务器控件混合起来会很麻烦。如果您想使用 AJAX 来填充表单,那么您可能希望手动生成html,或者使用您可以轻松管理的客户端网格。例如:使用ASP.NET Web窗体和JSON Web创建jqGrid服务[^] [ ^ ]



更多参考资料:

将jqGrid与ASP.NET Web窗体一起使用 - 第一部分 [ ^ ]

使用ASP.NET Web窗体使用jqGrid - 第2部分 [ ^ ]



当然,您可以通过快速搜索来找到更多示例:google:)
GridView is a server-side data control and it would make your life easier when manipulating it at the server because you can take advantage of the built-in features it offers. It would be a pain to mix your client-side code with server controls. If you want to use AJAX to populate your form, then you might want to generate the html by hand or perhaps use a client-side grid that you can easily manage. For example: Creating a jqGrid with ASP.NET Web Forms and a JSON Web Service[^][^]

More references:
Using jqGrid with ASP.NET Web Forms - Part I[^]
Using jqGrid with ASP.NET Web Forms - Part 2[^]

And of course, you can find more examples by doing a quick search ta google :)