有关于buffer的一个疑问?
最近在读的《DreamWeaver 完全参考(下)》中有下面的代码,看起来是最正常不过的,但是作者却说服务器会给出错误。我在iis5.0的环境下调试过,没问题啊!(页面可以正常redirect。但是作者却说:this is a test page to show how the HTML stream can be affected by your asp code。将导致应用程序失败。)。这是我的服务器的环境问题还是作者的错误,请教!
<! DOCTYPE HTML PUBLIC "-//w3c//DTD HTML 4.0 Transition//EN">
<html>
<%
dim x
x=53%>
<head>
<title>Buffer Example</title>
</head>
<body bgcolor="#ffffff">
this is a test page to show how the HTML stream can be affected by your asp code
<%if x=53 then
response.redirect("somePage.asp")
end if %>
</body>
</html>