title: Add serverside onclick event to programmatically created div
body: <p>[Coding in ASP.NET]</p>
  
  <p>I am creating a page where divs are created in code behind as content is loaded from an SQL database.</p>
  
  <p>I have a div that contains the number of votes users have given the current data and when you click on it I want the number of votes to go up by one. This would require executing a query and reloading the update panel. (I do not want Postback)</p>
  
  <p>How can I create an onclick event for the programmatically created div that calls a c# method (with the query)?</p>