Hello,
I am having trouble with an ASP statement...
I have an if statement that if is true, writes a an image and then a link to go to "book.asp" page. I want to make the link dynamic and pass a variable across when the URL is clicked by the user to the book.asp page (the variable is held in MM_keepURL function).
Code:
<td align="center" valign="middle" bgcolor="#FFFFFF" class="gen2">
<% If (rs_av.Fields.Item("w1_Avail".Value = True) Then
Response.Write "<img src='images/dab2.gif' alt='book this week'>&nbsp;<a href='book.asp?<%=MM_keepURL%>'>Book</a>"
Else
Response.Write " - "
End If
%>
</td>
I've tried moving the single quotes ' and double quotes but am not having any success. How do I write a repsonse.write <%= within a repsonse.write ?
Any tips gratefuly appreciated.
I am having trouble with an ASP statement...
I have an if statement that if is true, writes a an image and then a link to go to "book.asp" page. I want to make the link dynamic and pass a variable across when the URL is clicked by the user to the book.asp page (the variable is held in MM_keepURL function).
Code:
<td align="center" valign="middle" bgcolor="#FFFFFF" class="gen2">
<% If (rs_av.Fields.Item("w1_Avail".Value = True) Then
Response.Write "<img src='images/dab2.gif' alt='book this week'>&nbsp;<a href='book.asp?<%=MM_keepURL%>'>Book</a>"
Else
Response.Write " - "
End If
%>
</td>
I've tried moving the single quotes ' and double quotes but am not having any success. How do I write a repsonse.write <%= within a repsonse.write ?
Any tips gratefuly appreciated.