在ASP.NET的WebForms使用的jqGrid [英] Using jqGrid in ASP.NET WebForms
问题描述
我已经实现,并通过本教程MVC使用pretty功能电网:
I've implemented and used a pretty functional grid through this tutorial for MVC:
HTTP://www.$c$cproject.com/KB/ ASPNET / AspNetMVCandJqGrid.aspx
我不知道如何将这个迁移到ASP.NET的WebForms,另一个项目,我想使用jqGrid的,但写在的WebForms,而不是MVC。
I was wondering how to migrate this to ASP.NET WebForms, for another project I want to use jqGrid on, but is written in WebForms instead of MVC.
我发现了一些例子,但他们是不完整的,而(要求我宣布在这两个js和codebehind列,不配备传呼,没有多滤波等)
I've found some examples but they're rather incomplete (require me to declare the columns in both js and codebehind, don't feature paging, no multi-filtering, etc)
推荐答案
在应用程序的WebForms jQuery和页面方法合作得很好。 (<一href=\"http://www.junasoftware.com/blog/using-jquery-ajax-and-page-methods-with-a-asp.net-webservice.aspx\" rel=\"nofollow\">http://www.junasoftware.com/blog/using-jquery-ajax-and-page-methods-with-a-asp.net-webservice.aspx )
你指着文章一瞥后,我认为他们也可以工作。这里是什么,我认为你应该做的。
Jquery and page methods in WebForms application are working well together. ( http://www.junasoftware.com/blog/using-jquery-ajax-and-page-methods-with-a-asp.net-webservice.aspx ) After glance on the article you pointed to, I think they will work too. Here are what I think you should do.
- 包括以上我提到的文章,了解更多关于使用jQuery与页面的方法。
- 您将能够重复使用大多数HTML和JavaScript的和C#的数据结构从文章($ C $的CProject)的使用jQuery通信。
- 您需要做的是,基本上,你必须让你的页面的方法充当同时ASPX控制器的看法。并相应地调整其它元素。你要记住的一件事是页面的方法应该是静态的。
这篇关于在ASP.NET的WebForms使用的jqGrid的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!