var sidebar_align = 'right';
var content_container_margin = parseInt('290px');
var sidebar_width = parseInt('270px');
Unanswered: Image is null
If I grab the location of an image through a database and the return value is null I want to have it so no image comes up. What is the best way to do that.
<%if <"image"> = null then
<"image"> = "".
how can I cancel out that image? In a nice way.
nothing can ever equal null.
Did you go through that tutorial I suggested yet?
I didn't see anything there about null values. Send me the page if I'm wrong.
Last edited by bingo_barns; 09-12-09 at 17:13.
You want this function: VBScript IsNull Function
hmm I'm still having trouble getting this to work.
<% If (IsNull("sVendorImg"))then %>
<% else %>
<img src = "<%=qtest2("sVendorImg")%>" class="floatleft">
<% end if %>
I'm grabbing an image from a data base <img src = "<%=qtest2("sVendorImg")%>" And I need to have it so if there is nothing in the field sVendorImg it will jump past it.
Last edited by bingo_barns; 09-14-09 at 11:01.
Look at what you're passing to the IsNull() function - a string literal!
Thanks got it to work perfectly.