I'm trying to use this...
document.getElementById("TextBox1").value = code;
... to insert a value into a textbox contained in a DetailsView.
The name of the textbox is 'TextBox1' but when rendered in html it is 'table_Insert$ctl01'.
I can get it to work with a test textbox outside of the details view... but I cant get it to refer to the text box in the DetailsView. Please help!