If you create a table and add it, the ClientID property in the code behind doesn't reflect the ID in the actual file, so document.getElementById doesn't work.
How can I add a control, and be able to access it using Javascript, with only its ID (such as 'table1')?