ASP生成HTML时出现无效使用 Null: 'replace'

来源:百度知道 编辑:UC知道 时间:2024/04/30 22:31:01
生成分类,的asp文件,我有36页要生成,但是它只能
生成23页后就出现这个错误.
Microsoft VBScript 运行时错误 错误 '800a005e'

无效使用 Null: 'replace'

/admin/Html_MakeClass.asp,行 140

代码:
'分页程序

plist_bottom=plist_bottom&"<a href="&Request("nclass")&"_"&PageCount1&".htm title=""尾页""><font color=#ff0000>[尾页]</font></a> "
else
plist_bottom=plist_bottom&"[尾页] "
End If
plist_bottom=plist_bottom&"跳到 <select name=""select"" onchange=""javascript:window.location.href=this.options[this.selectedIndex].value"">"
For I=1 to PageCount1
Selected=""
If Currentpage=I Then
Selected=" Selected"
End If
plist_bottom=plist_bottom&"<option value="&Request("nclass")&"_"&I&".htm"&Selected&">第"

那是因为Rs("film_content")的值是null

film_content=Rs("film_content")
后面加一句
if isnull(film_content) then film_content = ""

给你几种参考
http://www.psart.com.cn/html/online/web/
慢慢看,一定对你有帮助。