| Visual Basic (Declaration) | |
|---|---|
Public Overridable Property OnError As String | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As WebFlyPostBackManagerClientSideEvents Dim value As String instance.OnError = value value = instance.OnError | |
| C# | |
|---|---|
public virtual string OnError {get; set;} | |
This event is executed when the WebFlyPostBackManager responses to the invalid request.
WebFlyPostBackManager implements error handling in automatic form. Therefore, the error thrown during FlyPostBack™ call or during client side processing will not be directly shown to users. In other words, any exceptions thrown by the server side method will not cause major failure to the caller. You can intercept the error in the OnError client side event when there is exception thrown by the server side method.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2