<<求助>> 一个ASP判断程序
我要做一个图片显示的判断,第一步和第二步,第四步没有问题,为什么 <% else if ordtl( "tax_exp ")- Date() < 7 then%>
<img src= "img/icon-yellow.jpg " width= "12 " height= "11 " /> 不能显示出来?请指点
<% if ordtl( "tax_chk ")= "yes " then%>
<img src= "img/icon-green.jpg " width= "12 " height= "11 " />
<% else if ordtl( "tax_exp ")- Date() < 2 then%>
img src= "img/icon-red.jpg " width= "12 " height= "11 " />
<% else if ordtl( "tax_exp ")- Date() < 7 then%>
<img src= "img/icon-yellow.jpg " width= "12 " height= "11 " />
<% else %>
<img src= "img/icon-white.jpg " width= "12 " height= "11 " />
<% end if %> <% end if %> <% end if %>
------解决方案--------------------先试着输出来看看ordtl( "tax_exp ")是什么?
response.write(ordtl( "tax_exp "))
response.end
还不行,可以cint(cdate(ordtl( "tax_exp "))-Date()) < 7试试