This topic is locked

Hyperlink Listed item

5/21/2004 7:25:19 PM
ASPRunnerPro General questions
O
Oahu7 author

Hi,
I have a list view of favorite websites that was created by ASPrunner pro.
Description Category

Yahoo email

ebay shopping
What is hidden is the url for each description which is stored in a field called website (located in the same table) What I want to be done is be able to hyperlink the Description to the url stores in the website field.
I know the text should be like <a href=" & website & "> with "website" being the URL, but I can't figure out where to places it. I beleive the following text is where the listings are written.
<%

if IsBinaryField(rsData.Fields("Description")) or Format("Description")=FORMAT_DATABASE_FILE then

Response.Write CreateImageControl(rsData, "Description", "")

else

Response.Write ProcessLargeText(GetData(rsData.Fields("Description"), ""))

end if

%>

Sergey Kornilov admin 5/24/2004

Hi,
here is how you can do this:
<%
Response.Write "<a href=""" & rsData.Fields("website") & """>" & rsData.Fields("Description") & "</a>"

%>
Just make sure both Website and Description fields are selected from the database (check SQL query).
Btw, I'm going to implement this feature in the next release of ASPRunnerPro.