看见真相的男孩是假的:asp代码问题 急!!!
来源:百度文库 编辑:高校问答 时间:2024/10/04 20:34:37
Response.Write replace(replace(rc("body"),chr(10),"<br>"),chr(32)&chr(32)," ") 提示错误语句
Microsoft VBScript 运行时错误 错误 '800a005e'
无效使用 Null: 'replace'
/guestbook.asp,行 199
Microsoft VBScript 运行时错误 错误 '800a005e'
无效使用 Null: 'replace'
/guestbook.asp,行 199
test1=rc("body")
if test1="" or isnull(test1) then
``````test2=replace(test1,chr(10),"<br>")
``````if test2="" or isnull(test2) then
```````````Response.Write replace(test2,chr(10),"<br>"),chr(32)&chr(32)," ")
``````end if
end if
可能是你的代码里有拼写错误。rc("body"),是空字符串,所以用replace函数出现上面的错错误
检查一下,
或在程序里做一下判断。
body=rc("body")
if not isnull(body) then
......
语法错误