title: Add 'onchange' Property To DetailsView Boundfield
body: <p>I'm designing a page with forms for editing fields in a database. At first I was using FormView controls, but for various reasons I've changed them for DetailsView controls instead.  These are so much quicker to code and the code is much tidier, because you just add a Boundfield for each field you want to display.  No textboxes, labels, etc.  So far so good.</p>
  
  <p>However, the textboxes in my FormViews all had the <strong>onchange</strong> property specified, which called a JavaScript function.  Basically it was the mechanism to alert a user that changes had been made and needed saving, and it worked perfectly.</p>
  
  <p>Unfortunately, you can't add the <strong>onchange</strong> property to a DetailsView Boundfield.  I've tried adding it programmatically in code behind (VB) in the DataBound event of the DetailsView, working on the theory that when the page is loaded the Boundfields are rendered as textboxes but, as expected, it doesn't work.</p>
  
  <p>Can anyone suggest a way to replicate the functionality of the textboxes in my FormViews, calling a JavaScript function when text in a Boundfield is changed?  I'd really like to stick with DetailsViews and Boundfields if I can.  And if I could achieve this in code-behind, perhaps iterating through the fields to add the functionality, that'd mean just a few lines of code for each DetailsView, rather than adding it declaratively for every Boundfield (there are LOTS!).</p>