Controller中返回JsonResult的方法
1、controller 中定义以下方法代码

2、页面调用的方法代码

3、在webform中要引用Newtonsoft.Json.dll方法代码;

4、设置属性的方法代码

5、html和js页面方法代码

6、测试输出结果的页面

1、controller 中定义以下方法代码
2、页面调用的方法代码
3、在webform中要引用Newtonsoft.Json.dll方法代码;
4、设置属性的方法代码
5、html和js页面方法代码
6、测试输出结果的页面