If the type of your table is
HTMLTable[
^], you can easily do this on the code behind because of the Visible property. As for the hyperlink, I suggest you use
LinkButton[
^] instead because it has a click event where you will be able to set the code to display/hide the table.