Hi,
I have a table in my database that contains an id and a Title field.
id | Title
----------
1 Golf
2 Football
3 Rugby
I want to list all the records but displayed in a table which is going to be my left hand menu. Each item on my menu needs to be a hyperlink which contains the id as well as the title eg:
I have a table in my database that contains an id and a Title field.
id | Title
----------
1 Golf
2 Football
3 Rugby
I want to list all the records but displayed in a table which is going to be my left hand menu. Each item on my menu needs to be a hyperlink which contains the id as well as the title eg:
Code:
<a href="showinfo.asp?ID=1">Golf</a>
<br>
<a href="showinfo.asp?ID=2">Football</a>
<br>
<a href="showinfo.asp?ID=3">Rugby</a>
</code]
I am trying to do it in C# and after writing in ASP classic for many years I am finding it a little tricky to get my head around! My output above uses <br> but if there was an easy(ish) way of getting .NET to put it into a table that would be even better.
Would be very grateful for any pointers.
Thanks very much
Ed