2011年10月26日

显示所有命名的服务器变量的名称和值

摘要: 下面的代码示例显示所有命名的服务器变量的名称和值。using System.Collections.Specialized; int loop1, loop2; NameValueCollection coll; // Load ServerVariable collection into NameValueCollection object. coll = Request.ServerVariables; // Get names of all keys into a string array. String[] arr1 = coll.AllKeys; for (loop1 = 0; l. 阅读全文

posted @ 2011-10-26 11:08 WestGarden 阅读(113) 评论(0) 推荐(0) 编辑

导航