码迷,mamicode.com
首页 > Web开发 > 详细

字符串拼接 拆分 NameValueCollection qscoll = HttpUtility.ParseQueryString(result)

时间:2014-12-23 10:16:46      阅读:243      评论:0      收藏:0      [点我收藏+]

标签:

 string result = "sms&stat=100&message=发送成功";
        string d = HttpUtility.ParseQueryString(result).Get("stat");
        string dd = HttpUtility.ParseQueryString(result).Get("message");
        string ddd = HttpUtility.ParseQueryString(result).Get("sms");
        NameValueCollection qscoll = HttpUtility.ParseQueryString(result);
        qscoll.Add("a", "nihao");
        string ss = qscoll.Get("a");
        string aaa = qscoll.ToString();



//aaa的结果sms&stat=100&message=%u53d1%u9001%u6210%u529f&a=nihao

  

字符串拼接 拆分 NameValueCollection qscoll = HttpUtility.ParseQueryString(result)

标签:

原文地址:http://www.cnblogs.com/crazyair/p/4179403.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!