• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 36
  • Last Modified:

Creating a hyperlink with a response.write

I have the following code in a table that works fine:

<td width="60"><b><a href="purchase_details.asp?id=<%Response.Write rs3("m_id")%>">View Details</a></b></td>

Open in new window


I want to incorporate into that line an if statement that basically says

if Response.Write rs3("m_status") = "purchased" then do the above code else I want nothing

Open in new window


Thanks in advance for your help
0
Robert Francis
Asked:
Robert Francis
1 Solution
 
Big MontySenior Web Developer / CEO of ExchangeTree.org Commented:
try this:

<td width="60"><%if rs3("status") = "purchased then%><b><a href="purchase_details.asp?id=<%Response.Write rs3("m_id")%>">View Details</a></b><%end if%></td>

Open in new window

0
 
Robert FrancisDirector of Continuous ImprovementAuthor Commented:
Thanks. Works great.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now