dcsimg
Results 1 to 2 of 2

Thread: conditional display of images/links

  1. #1
    John Murray Guest

    conditional display of images/links

    downloaded aspDbFree this aft - awesome!

    is it possible to test for a null value in a fld and then display (or not) an image/link within the grid?

    i'm doing this now (the hard way) using . .

    'previously established recordset rstemp()
    'rstemp(0) is first column
    'if it is null then i display a "blank" image,
    'otherwise i display an icon with a ref to some script
    <%do while not rstemp.eof %>
    <tr>
    <% if isnull(rstemp(0)) then %>
    <td><img src=&#34;blank.gif&#34;</td>
    <% else %>
    <td><a href=&#34;javascript:show(&#39;<%=rstemp(0)%>&#39&#34;><img src=&#34;plan.gif&#34;</td>
    <% end if %>
    <%next%>

    if this is possible using aspDB, which version would be appropriate?


  2. #2
    Frank Guest

    conditional display of images/links (reply)

    Check out the following. Note that some of the capabilities are not available with the Free version.

    http://www.kingkwong.com/htmldoc/dbMagicCell.shtm


    Frank


    ------------
    John Murray at 12/21/99 9:30:32 PM

    downloaded aspDbFree this aft - awesome!

    is it possible to test for a null value in a fld and then display (or not) an image/link within the grid?

    i&#39;m doing this now (the hard way) using . .

    &#39;previously established recordset rstemp()
    &#39;rstemp(0) is first column
    &#39;if it is null then i display a &#34;blank&#34; image,
    &#39;otherwise i display an icon with a ref to some script
    <%do while not rstemp.eof %>
    <tr>
    <% if isnull(rstemp(0)) then %>
    <td><img src=&#34;blank.gif&#34;</td>
    <% else %>
    <td><a href=&#34;javascript:show(&#39;<%=rstemp(0)%>&#39&#34;><img src=&#34;plan.gif&#34;</td>
    <% end if %>
    <%next%>

    if this is possible using aspDB, which version would be appropriate?


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •