parallon
05-31-2006, 09:06 PM
Hello all. I have a table which displays the results of a recordset. What I want to do is to have the results hyperlink to a details page of that particular record. For some reason it's not working for me. Here is the code that I have so far:
<tr>
<td style="cursor:hand;" onclick="A HREF='DummyPage.asp?<%= Server.HTMLEncode(MM_keepNone) & MM_joinChar(MM_keepNone) & "ID=" & rsMods.Fields.Item("ID").Value %>'"><%=(rsMods.Fields.Item("FileName").Value)%></A></td>
</tr>
And when I view the source, I get the following (which seems ok to me):
<tr>
<td style="cursor:hand;" onclick="A HREF='DummyPage.asp?ID=2'">Result 1</A></td>
</tr>
<tr>
<td style="cursor:hand;" onclick="A HREF='DummyPage.asp?ID=1'">Result 2</A></td>
</tr>
Any help would be greatly appreciated.
Thanks in advance,
Parallon
<tr>
<td style="cursor:hand;" onclick="A HREF='DummyPage.asp?<%= Server.HTMLEncode(MM_keepNone) & MM_joinChar(MM_keepNone) & "ID=" & rsMods.Fields.Item("ID").Value %>'"><%=(rsMods.Fields.Item("FileName").Value)%></A></td>
</tr>
And when I view the source, I get the following (which seems ok to me):
<tr>
<td style="cursor:hand;" onclick="A HREF='DummyPage.asp?ID=2'">Result 1</A></td>
</tr>
<tr>
<td style="cursor:hand;" onclick="A HREF='DummyPage.asp?ID=1'">Result 2</A></td>
</tr>
Any help would be greatly appreciated.
Thanks in advance,
Parallon