that is odd, did you check the string length?string s = HttpUtility.UrlDecode(Request.QueryString["bmmc"], System.Text.Encoding.GetEncoding("GB2312"));

解决方案 »

  1.   

    saucer说的对
    另外传值的时候最好不要用中文
      

  2.   

    我也遇到過這樣的問題,最後用session了
      

  3.   

    同意楼上几位大哥的说法!!我平时使用的是SESSION....
      

  4.   

    saucer(思归, MS .NET MVP)真是高人呀!
      

  5.   

    写Url的时候使用Server.UrlEncode方法
    如你的Url:
    http://'..../test.aspx?nf=2003&bmmc=代数
    改成:
    http://'..../test.aspx?nf=2003&bmmc='<%# Server.UrlEncode("代数") %>'然后在使用参数的网页加入:
    Request.QueryString("nf")
    Server.UrlDecode(Request.QueryString("bmmc"))就行了,我就用这个方法传递中文的,字数仅仅受Url的长度限制。
      

  6.   

    TomMax(笑望人生)谢谢,可以了 :)
      

  7.   

    http://localhost/kmrts/manager/travel6/4_list.aspx?TravelType=吃
    我用
    string s = HttpUtility.UrlDecode(Request.QueryString["TravelType"], System.Text.Encoding.GetEncoding("GB2312"));
    却取不到, why?!?!