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
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
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
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楼代码