变量aaa="中国人"this.ClientScript.RegisterStartupScript(this.GetType(), "sch", "window.open('xtsch.aspx?id=" + aaa+ "', '', 'height=110, width=350, top=200, left=250, toolbar=no, menubar=no, scrollbars=yes, resizable=no,location=no, status=no')", true);到另一页面后,只剩下"中国"
string s=Request.QueryString.Get("id");

解决方案 »

  1.   

    传递的时候这样写:
    url="description.aspx?name="+Server.UrlEncode(myname.text)
    response.redirect(url)接收的时候:
    name=Server.UrlDecode(Request.QueryString("name"))
      

  2.   

    我用过这种方式:response.redirect(url),但报错,我用的是ALTAS,再用response就总报错.
      

  3.   

    汉字不能直接在url传递,一般需要编码,在服务器端或者客户端都可以.this.ClientScript.RegisterStartupScript(this.GetType(), "sch", "window.open('xtsch.aspx?id=" + Server.UrlEncode(aaa)+ "', '', 'height=110, width=350, top=200, left=250, toolbar=no, menubar=no, scrollbars=yes, resizable=no,location=no, status=no')", true);或者 客户端编码在hmtl代码里写好方法function openwin(aaa)
    {
    var bbb=escape(aaa);
    window.open('xtsch.aspx?id=" + bbb+ "', '', 'height=110, width=350, top=200, left=250, toolbar=no, menubar=no, scrollbars=yes, resizable=no,location=no, status=no');}
    在cs文件调用:
    this.ClientScript.RegisterStartupScript(this.GetType(), "sch", "openwin("+ aaa +")", true);
      

  4.   

    编码之后,接收方不用解码,照样用Request.QueryString["name"]就可以了
      

  5.   

    用以边各位说的编码就行
    在webconfig中加上
      <globalization 
                requestEncoding="gb2312" 
                responseEncoding="gb2312" 
       />