无效使用 Null: 'replace' ,怎么解决?
Microsoft VBScript 运行时错误 错误 '800a005e' 无效使用 Null: 'replace'
/system/admin/view_company.asp,行 84
(下面第一行就是行 84 )
<td class="font" align="center" valign="middle" height="26" width="84" bgcolor="#DBE7F2"><%=replace(rs("date"),right(rs("date"),8),"")%></td>
<td class="font" align="center" valign="middle" height="26" width="270" bgcolor="#C1D6EA"><font color=<%=rs("color")%>><%=left(rs("company"),20)%></font></td>
<td class="font" align="center" valign="middle" height="26" bgcolor="#DBE7F2" width="126"><%=left(rs("tel"),20)%><font color="#FF6633" class="font"></font></td>
<td class="font" align="center" valign="middle" height="26" width="43" bgcolor="#C1D6EA"><a href="del_company.asp?id=<%=rs("id")%>&type=<%=request("type")%>"" class="linkfont">删除</a></td>
<td class="linkfont" align="center" valign="middle" height="26" width="65" bgcolor="#DBE7F2"><a href="change_company.asp?id=<%=rs("id")%>" class="linkfont" target="_blank" >详细资料</a></td>
</tr>
<%
rs.movenext
next
%>
<tr>
<td colspan="5" align="right" class="font">
<%
out("共 " & rs.pagecount & " 页 ")
out("当前第 " & PageNo & " 页 ")
%>
<a href="view_company.asp?pageno=1&type=<%=request("type")%>" class="linkfont">首页</a>
<a href="view_company.asp?pageno=<%=pageno-1%>&type=<%=request("type")%>" class="linkfont">上一页</a>
<a href="view_company.asp?pageno=<%=pageno+1%>&type=<%=request("type")%>" class="linkfont">下一页</a>
<a href="view_company.asp?pageno=<%=rs.pagecount%>&type=<%=request("type")%>" class="linkfont">尾页</a>
</td>
</tr>
<%
else
%>
<tr>
<td colspan="5" class="font">
<div align="center">没有数据!</div>
</td>
</tr>
<%
end if
rs.close
set rs=nothing
%>
</table>
</FORM>
</body>
</html>