location.href("Reserve.asp?dept=" & Server.UrlEncode<%=dept%>")

解决方案 »

  1.   

    是不是你没有设置.net的中文显示?
    在程序执行的目录中创建一个web.config的文件在文件中输入以下内容:<configuration>
    <location>
      <system.web>
        <globalization 
                requestEncoding="gb2312" 
                responseEncoding="gb2312" 
       />
       
     </system.web>
    </location>
    </configuration>
      

  2.   

    dim strTarget as string = "Reserve.asp?dept=" & Server.UrlEncode(strSQL)
            Dim strurl As String = "<script>location.href=""" & strTarget & """;</script>"
            Response.Write(strurl)