iis时灵时不灵
江湖救急~~江湖救急啊~~~~我的iis时灵时不灵是怎么回事呢?
比如说我运行有这样代码程序
<script language=vbscript>
<!--
if t1="" then
response.write"错误!"
response.end
-->
</script>
它有时候会弹出"错误"有时候就没有的
请各位高手帮帮忙啊~~~~
response客户端应该不能使用这个对象吧?
如果t1是文本框并且不在表单里可以写
<script language=vbscript>
<!--
if document.t1.value="" then
msgbox "错误!"
-->
</script>
否则ti在表单里
<script language=vbscript>
<!--
if document.[表单名].t1.value="" then
msgbox "错误!"
-->
</script>
哦~~~
谢谢!
不用endif的吗?
当然得用否则不用就会语法错误。