How to implement JQgrid in asp.net?

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.

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

Please suggest.

Answers:

Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.

Method 1

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?

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.

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

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

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

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


All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x