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