I've got a table with controls bound to a model, and I need to call a function when some of these controls' values change. (Recalculating totals and taxes)
The table is in an edit form, and the controls are bound to the model, so I cannot use the onchange event in the controls.
What I've tried:
- use the SetParametersAsync or OnParametersSetAsync functions, however it only gets triggered when the model is set the first time, not on each change of a property in the model as I would expect.
tried to use the set accessor of the model, however doing this and running in debug the browser crashes and in my debug console I get a access violation error with no context:
private Order order { get { return order; } set { order = value; CalculateTotals(); } }
The program '[11992] iisexpress.exe: Program Trace' has exited with code 0 (0x0). The program '[11992] iisexpress.exe' has exited with code -1073741819 (0xc0000005) 'Access violation'.
Anyone got any ideas?