1.命名空間
System.Collections.Specialized
2.給值
NameValueCollection nv =new NameValueCollection();
nv.add("1","Tina");
nv.add("2","Peter");
nv.add("3","Andy");
3.讀取所有值
foreach(string key in nv.Allkeys)
{
Response.Write(key+":"+nv[key]);
}
沒有留言:
張貼留言