这问题真怪

kingsjava 2005-05-10 03:35:46
我用的是ACCESS数据库,rutruneat为备注型字段,我想判断这字段如果是空就显示管理员未回复此留言,如果不为空就显示rutruneat字段的值。以下代码不能显示,请帮忙
<%
if trim(rs("rutruneat"))<>"" then
response.write (rs("rutruneat"))
%>
<%
else
response.write "<font color=red>管理员未回复此留言!</font>"

%>
<%
end if
%>
...全文
99 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
king2410 2005-05-10
  • 打赏
  • 举报
回复
<%
if trim(rs("rutruneat"))<>"" and not IsNull(rs("rutruneat")) and not IsEmpty(rs("rutruneat")) then
response.write rs("rutruneat")
else
response.write "<font color=red>管理员未回复此留言!</font>"
end if
%>
leo963258 2005-05-10
  • 打赏
  • 举报
回复
<%
if rs("rutruneat")=empty then
response.write "<font color=red>管理员未回复此留言!</font>"
else
response.write rs("rutruneat")
end if
%>
leo963258 2005-05-10
  • 打赏
  • 举报
回复
<%
if rs("rutruneat"))=empty then
response.write "<font color=red>管理员未回复此留言!</font>"
else
response.write (rs("rutruneat"))
end if
%>

28,406

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧