PowerWEB LiveControls for ASP.NET
ErrorBehavior Property
See Also  Send comments on this topic.
Dart.LiveControls Namespace > LiveImage Class : ErrorBehavior Property



Gets or sets how errors are handled by the control.

Syntax

Visual Basic (Declaration) 
<CategoryAttribute("Behavior")>
<DescriptionAttribute("Determines how unhandled exceptions are handled in a callback.")>
<DefaultValueAttribute()>
Public Property ErrorBehavior As ErrorBehavior
Visual Basic (Usage)Copy Code
Dim instance As LiveImage
Dim value As ErrorBehavior
 
instance.ErrorBehavior = value
 
value = instance.ErrorBehavior
C# 
[CategoryAttribute("Behavior")]
[DescriptionAttribute("Determines how unhandled exceptions are handled in a callback.")]
[DefaultValueAttribute()]
public ErrorBehavior ErrorBehavior {get; set;}
C++/CLI 
[CategoryAttribute("Behavior")]
[DescriptionAttribute("Determines how unhandled exceptions are handled in a callback.")]
[DefaultValueAttribute()]
public:
property ErrorBehavior ErrorBehavior {
   ErrorBehavior get();
   void set (    ErrorBehavior value);
}

Property Value

An ErrorBehavior enumerated value. Defaults to ErrorBehavior.ShowInBrowser.

Remarks

Set ErrorBehavior to specify whether an exception raised by the PowerWEB control should cause an error page, an alert box, or no indication to appear.

If set to ErrorBehavior.ShowAlert, set the alert message using the ErrorMessage property.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

Documentation Version 4.0.2
© 2012 Dart Communications. All Rights Reserved.