首先获得传递过来的url,然后把url 用‘?’split获得后边的字符串
至于post的,有use吗?
倒不如在上一页把想用post的用get表示出来传递

解决方案 »

  1.   

    using System.Web;
    using System.Collections.Specialized;int loop1, loop2;
     
    // Load NameValueCollection object.
    NameValueCollection coll=Request.QueryString; 
    // Get names of all keys into a string array.
    String[] arr1 = coll.AllKeys; 
    for (loop1 = 0; loop1 < arr1.Length; loop1++) 
    {
       Response.Write("Key: " + Server.HtmlEncode(arr1[loop1]) + "<br>");
       String[] arr2 = coll.GetValues(arr1[loop1]);
       for (loop2 = 0; loop2 < arr2.Length; loop2++) 
       {
          Response.Write("Value " + loop2 + ": " + Server.HtmlEncode(arr2[loop2]) + "<br>");
       }
    }