I appreciate the response, but I am still confused. The links are populated on the first page from the database:
Code:
<% If rs.Fields("strType") = 1 Then
Do While not rs.EOF
Response.Write ("<li><a href='#' name='product'")
Response.Write ("onClick='fncSelected()'")
Response.Write rs("strProduct")
Response.Write ("</a></li>")
rs.MoveNext
Loop
End If
rs.Close
set rs=Nothing %>
This works in that it does populate the page with the links from the database.
And I have set up a function to pass the variable, but that's where I get stumped. I'm not sure how to set up the variable and then pick it up on the next page. Here's the function:
Code:
<script language="javascript">
function fncSelected(){
/// Open Report.asp for the product link selected
window.open("http://Report.asp", "product");
}
</script>
I think I should use request.querystring, but there are still gaps in my understanding of how to accomplish this. I'm not even sure that using the onClick event is the right way to accomplish this.
Thanks so much for the help. I've tried so many different things that I just can't seem to get a clear perspective on it myself.
Bookmarks