如何在asp.net中实现JQgrid? [英] How to implement JQgrid in asp.net?

查看:21
本文介绍了如何在asp.net中实现JQgrid?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我曾在 asp.net mvc 中使用过 JQgrid,但现在我正在尝试在 asp.net 中实现它.我发现在 asp.net 中制作 JQgrid 示例很困难.

I have worked with JQgrid in asp.net mvc, but now i am trying to implement this in asp.net. I find a hard time making a JQgrid sample in asp.net.

我必须在 asp.net 中使用 JSON 响应还是必须以任何其他方式实现它.

Do i have to use the JSON response in asp.net or i have to implement this in any other way.

请提出建议.

推荐答案

我不完全理解你的要求.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.

这篇关于如何在asp.net中实现JQgrid?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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