title: How to add client side OnClick actions to text in ASP.NET
body: <p>I'm generating a table of content in an ASP.NET page and I want to add client side <code>OnClick</code> actions to each cell (the action should be to set the value of a named TextBox control to the text in the clicked cell). If I could directly add stuff to the HTML output, I think I could do this with a single line of JavaScript in each cell.</p>
  
  <p>Given that I'me <strong>not</strong> now using JQuery (and never have before), what is the simplest solution to adding this (including the time spent learning stuff)?</p>
  
  <hr>
  
  <p>Edit: <a href="https://stackoverflow.com/questions/821341/adding-onclick-attribute-to-asp-net-dropdownlist-item">this</a> seems to work</p>