摘要:
下面的代码示例显示所有命名的服务器变量的名称和值。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. 阅读全文