OK, I have a WHDG hooked up and working. On my client side I invoke the following to do an update.
sender.get_behaviors().get_editingCore().commit();
In my code behind, I "MAY" get an exception from the backend processing the request. How can I pass this back to the client side function which called it in the line above.
Thanks
Since it is triggering an AJAX request to the server, this cannot be nadled within the same function. But you can handle the AJAXResponse client event and all of the info regarding errors that happened on the server is provided in the event args. The event is also cancelable to suppress default error messages.
>> 'AJAX request to the server, this cannot be nadled within the ' <<
Do we need an event 'nadler' to do this ? <only joking>
;-)
Thanks for the pointer Alex, I will experiement with this.
Regards
Sorry about the typo. Will not happne again. :-)
Please feel free to give as your feedback. And keep in mind that any reasonable feature request can be added to the product fairly quickly.