How to add sort function for the table via ajax in ASP.NET MVC?What is the best practice.

Posted by Eric Wang on Stack Overflow See other posts from Stack Overflow or by Eric Wang
Published on 2010-06-10T03:40:01Z Indexed on 2010/06/10 3:42 UTC
Read the original article Hit count: 296

Filed under:
|
|

How to add sort function for the table via ajax in ASP.NET MVC?What is the best practice.

If not use Ajax, it maybe much easier, just return View, but if use AJAX, what data structure should return?I just use Json to return the data, but i found each JSON data model return to the client browser, the JS have to use different code to parse it, remove the originally table rows, add the new data rows(because the column is different) etc. It make me crazy, is there any better way to do that?

Thank you for any advice.

© Stack Overflow or respective owner

Related posts about c#

Related posts about ASP.NET