User Profile
Collapse
-
I fixed it. I could never figure out how to get a layered if statement to work, so ended up using LEN. This took care of it - works for Nulls or for blanks. -
IsNull or = "" not working
I have a database that contains 3 plaque inscriptions in fields plaque, plaque2 and plaque3. I am trying to get my asp page to display only the plaques if there is data in the field. Some of the fields are null and some are just empty (no null value).
I have the following code, but I can't get it to work consistently:
...Code:<div class="personalizedPlaques" style="width: 185px">
-
-
If statement when retrieving variable from database
I have code that looks like this (pulling in 3 fields from a sql database), but I want it to only show the fields if <%=rs("UnitPric e3")%> is greater than 0. How do I write the if statement on my asp page?
...Code:<div class="orderItem"> <a href="http://www.xyz.com/eshop/shop.asp?productcode=<%=rs("ProductCode3")%>" title="Order"><img src="http://bytes.com/images/order.gif"Last edited by jhardman; Sep 17 '10, 06:02 AM. Reason: added code tags. please use code tags in the future
No activity results to display
Show More
Leave a comment: