If Trim(TextBox5.Text) <> "" Then
                Response.Write("<script>window.open('zkjc.aspx?dclx=gysmx&cdbm=<%=("textbox5.text")%>'" & TextBox5.Text & "'','_blank', 'width=780,height=550,resizable=0,scrollbars=auto');</script>")
            Else
                Jscript.AjaxAlert(Me, "供应商编码不能为空 !")
            End If

解决方案 »

  1.   

    If Trim(TextBox5.Text) <> "" Then 
                    Response.Write(" <script>window.open('zkjc.aspx?dclx=gysmx&cdbm=" & TextBox5.Text & "','_blank', 'width=780,height=550,resizable=0,scrollbars=auto'); </script>") 
                Else 
                    Jscript.AjaxAlert(Me, "供应商编码不能为空 !") 
                End If
      

  2.   


    If Trim(TextBox5.Text) <> "" Then
                    Response.Write(" <script>window.open('zkjc.aspx?dclx=gysmx&cdbm=" & TextBox5.Text & "','_blank', 'width=780,height=550,resizable=0,scrollbars=auto'); </script>")
                Else
                    Jscript.AjaxAlert(Me, "供应商编码不能为空 !")
                End If
      

  3.   

    window.open('zkjc.aspx?dclx=gysmx&cdbm= <%=("textbox5.text")%>'" & TextBox5.Text & "''我想将textbox5.text的值传到指定页面,总提示少")"
      

  4.   

    直接拼接字符串就可以了,不用再用<%=("textbox5.text")%>
    请参考2楼代码