IMPORTANT: This version of Sitefinity CMS is out of support and the respective product documentation is no longer maintained and can be outdated. Use the version selector to view a supported product version.
Now, it is somethings required that you need to know what is going wrong in the service or you want to throw some errors intentionally from WCF services and you want to handle them in the UI property.
There is a event in the base ClientBinder class that you can use to handle error. The event is named "OnClientError" and raised for any exception raised from the service class. You can hook a method like the following and track errors.
OnClientError="MyErrorMethod"
And inside you can do:
function
MyErrorMethod(sender, args) {
var
errorDetail = args.get_error().Detail;
alert(errorDetail);
}
When this method is raised, success methods like OnClientSaved, will not be fired.
Back To Top
To submit feedback, please update your cookie settings and allow the usage of Functional cookies.
Your feedback about this content is important