Hi
I have a page that displays business listings. I have a repeater with dynamic text and in the 4th column I have an email and website link. Both display properly but I need to have one take precedent over the other, so if ("www") is not null then it should be displayed and the email shouldn't. I also need some script to only display either if the field is not null.
This is not really my thing, and I have been trying to figure this out all day so any help would be greatly appreciated:)
John Pether
<code>
<%
While ((Repeat1__numRows <> 0) AND (NOT listings.EOF))
%>
<tr>
<td><%=(listings.Fields.Item("BusinessName").Value )%><br /> <%=(listings.Fields.Item("Address1").Value)%><%=(l istings.Fields.Item("Address2").Value)%><br /> <%=(listings.Fields.Item("SubPost").Value)%><br /> </td>
<td><%=(listings.Fields.Item("Phone").Value)%></td>
<td><%=(listings.Fields.Item("Fax").Value)%></td>
<td><a href="mailto:<%=(listings.Fields.Item("Email").Val ue)%>">Email Us</a><br>><a href="<%=(listings.Fields.Item("WWW").Value)%>">Vi sit Us</a></td>
<td</td>
</tr>
<tr>
<td colspan=4><hr></td>
</tr>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
listings.MoveNext()
Wend
%>
************************************************** ********************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...