When a table is created and added dynamically, the ClientID property in the code behind may not reflect the actual ID of the element in the file, causing issues with document.getElementById functionality.
Is there a way to add a control so that it can be accessed using JavaScript by its designated ID (e.g. 'table1')?