The
label
element doesn't have an
onchange
event because it's intended to display read-only content. You need to wire-up the
onchange
event on the
TextBox
element instead and then do the computation logic there, and finally display the result to your
label
. Here's one article that may help you get started:
How To: Do Calculations in GridView[
^]