Illufox
08-09-2004, 06:30 PM
I'm trying to display links from URL's that were entered into text fields. I don't want the links to show if the user didn't enter a URL for one of the text fields. This would be easy if I wanted to show the URL's itsef, but instead I want to show the link names and this is where the problem is.
Here is the code that doesn't work. I've tried several things but nothing seems to work, the links without values still show.
<%
If [(SEDReport.Fields.Item("AdproTemplates").Value) = ""] Then
Response.Write("")
Else
Response.Write("<a href="[SEDReport.Fields.Item("AdproTemplates").Value]">Adpro Templates</a>")
End If
%>
I've also tried this:
If [SEDReport.Fields.Item("AdproTemplates").Value = ""] Then
Response.Write("")
Else
%>
<a href="<%=(SEDReport.Fields.Item("AdproTemplates").Value)%>">Adpro Templates</a><br>
<%
End If
%>
All I need to know is how to make this code work. I'm quite new to this.
I use Dreamweaver MX, Access 2002 and ASP VBScript.
Thanks :)
Here is the code that doesn't work. I've tried several things but nothing seems to work, the links without values still show.
<%
If [(SEDReport.Fields.Item("AdproTemplates").Value) = ""] Then
Response.Write("")
Else
Response.Write("<a href="[SEDReport.Fields.Item("AdproTemplates").Value]">Adpro Templates</a>")
End If
%>
I've also tried this:
If [SEDReport.Fields.Item("AdproTemplates").Value = ""] Then
Response.Write("")
Else
%>
<a href="<%=(SEDReport.Fields.Item("AdproTemplates").Value)%>">Adpro Templates</a><br>
<%
End If
%>
All I need to know is how to make this code work. I'm quite new to this.
I use Dreamweaver MX, Access 2002 and ASP VBScript.
Thanks :)