且构网

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

如何在asp.net中实现JQgrid?

更新时间:2023-02-16 11:47:27

我不完全理解你的要求.ASP.NET MVC 也是 ASP.NET 应用程序.您对 .NET 版本有限制吗?您只能使用某些特定的 .NET 技术吗?

I don't full understand your requirements. ASP.NET MVC is also ASP.NET application. Do you have restriction to .NET version? Do you can use only some specific .NET technology?

一般情况下,您可以将您大小的主要代码与其他 ASP.NET 技术中的代码混合使用.例如,WCF 服务可以是 ASP.NET MVC 或 ASP.NET Web 窗体应用程序的一部分.主代码可以提供您网站的用户界面,WFC 服务将为来自 jqGrid 的任何 Ajax 请求提供 JSON 数据.

In general you can mix the main code of your size with the code in other ASP.NET technology. For example WCF service can be the part of ASP.NET MVC or ASP.NET Web Form application. The main code can provide the user interface of your web site and the WFC service will provide JSON data for any Ajax requests from jqGrid.

因此,您可以使用 WCF、ASMX Web 服务甚至简单的 ASHX 处理程序的任何示例.

So you can just use any examples of WCF, ASMX Web Service or even simple ASHX handler.

演示项目来自 答案显示了如何在 ASP.NET Web 窗体应用程序中使用 ASHX 处理程序.

The demo project from the answer shows how to use ASHX handler in ASP.NET Web Form application.

另一个演示项目来自 答案展示了如何使用WCF服务.

Another demo project from the answer shows how to use WCF service.

演示项目来自 答案答案中的">另一个演示演示了 ASMX Web 服务的用法.

The demo project from the answer or another demo from the answer demonstrate the usage of ASMX web services.