[C#] 纯文本查看 复制代码
string parameters = "a=123456&b=456789&c=456456";
//得到一个参数集合
NameValueCollection list = HttpHelper.GetNameValueCollection(parameters);
string a = list["a"];
string b = list["b"];
string c = list["c"];
Response.Write(string.Format("a={0}<br/>b={1}<br/>c={2}", a, b, c));
[C#] 纯文本查看 复制代码
string parameters = "a=123456&b=456789&c=456456";
//得到一个参数集合
NameValueCollection list = HttpHelper.GetNameValueCollection(parameters);
string a = list["a"];
string b = list["b"];
string c = list["c"];
Response.Write(string.Format("a={0}<br/>b={1}<br/>c={2}", a, b, c));
list["a"] = list["a"] + "修改过我";
list["c"] = list["c"] + "修改过我";
a = list["a"];
b = list["b"];
c = list["c"];
Response.Write(string.Format("<br/><br/>a={0}<br/>b={1}<br/>c={2}", a, b, c));