Chinaunix首页 | 论坛 | 博客
  • 博客访问: 82367
  • 博文数量: 64
  • 博客积分: 1545
  • 博客等级: 上尉
  • 技术积分: 392
  • 用 户 组: 普通用户
  • 注册时间: 2012-10-23 15:23
文章分类

全部博文(64)

文章存档

2013年(1)

2012年(63)

我的朋友

分类: 嵌入式

2012-11-10 23:08:43

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="FormToJson.aspx.cs" Inherits="demo_FormToJson" %>




    form序列化json





   

   

       
       
       
       
       
   

   




aspx后台获取json数据
[WebMethod]
public static string SayHello(string objString)
{
     tb_admin admin = JsonHelper.JSONToObject(objString);//json转对象
     return admin.adm_user;
}
注意:表单字段要跟对象属性相同,否则返回null.

http://www.cnblogs.com/badtree/articles/2242515.html
阅读(224) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~