I am a begginner with ASP.
Can someone help me fix this?
I am trying to display order tracking links from a DB table.
If there is a tracking link listed for a company it should display
"Track Now" as a hyperlink. If there is no order tracking link listed
it displays: "No Address".
The link displays fine if I just use:
<a href="<%=rs.Fields.Item("Order_Tracking").Value%>" ><%=rs.Fields.Item("Order_Tracking").Value%></a>
but I don't want that because some of the links are very long.
PROBLEM: I have about 50 companies to display about 30 of them has a
package tracking link provided. All displays however as "No Address".
Here is the code I would like to use. Can someone put me in the right
direction:
<%
If VIPPtracking = "" then
Response.Write("<a href=""" &
rs.Fields.Item("Order_Tracking").Value & """>Track Now</a>")
else
Response.write("No Address")
End If
%>