passing Error message from server to client


My question is about passing an error message back to the client.
I am using

scheduler.dataProcessor.attachEvent("onAfterUpdate", function (sid, action, tid, tag) { ...
I do my validation on the server side.
I set action.Message = serverError Message
But it comes as undefined in the view/client.

How should we pass the error message to the client in MVC after we validate in Save function.


how do you getting message on the client? On the client it can be retrieved as text content of “tag” argument(which is xml element)