MINIUI support asp.net MVC

Source: Internet
Author: User
asp.net mvc can easily return JSON data in the background, so data interaction with MINIUI is straightforward.

1) Background processing:
In the MVC controller, data can be received through method parameters, or more complex data objects can be received by request.
It then serializes any server-side object Json and returns it via ' return JSON ' (result).
For example, a typical form page loading background processing code:
Public ActionResult Getgriddata (pagerquery q)
{
Query criteria
string key = Q.key;
Paging
int pageIndex = Q.pageindex;
int pageSize = q.pagesize;
Sorting fields
String SortField = Q.sortfield;
String sortOrder = Q.sortorder;

Hashtable result = new Test.testdb (). Searchemployees (Key, PageIndex, PageSize, SortField, SortOrder);

return Json (Result);
Copy Code
2) Front-End processing
All MINIUI examples do not require any changes, just modify the URL address to conform to the MVC specification.

Here is a sample download with full interactive code.

Address: http://miniui.com/bbs/forum.php?mod=viewthread&tid=27527&extra=page%3D1

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.