Ask Learn
Preview
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Occurs when validation fails in a partial methods or when an exception is raised.
event EventHandler<System.Web.DynamicData.DynamicValidatorEventArgs> System.Web.DynamicData.IDynamicDataSource.Exception;
member this.System.Web.DynamicData.IDynamicDataSource.Exception : EventHandler<System.Web.DynamicData.DynamicValidatorEventArgs>
Custom Event Exception As EventHandler(Of DynamicValidatorEventArgs) Implements System.Web.DynamicData.IDynamicDataSource
The IDynamicDataSource.Exception event is implemented to provide for compatibility with ASP.NET Dynamic Data. This event, defined by the IDynamicDataSource interface, is explicitly implemented by the EntityDataSource. A handler for this event cannot be registered in markup. It can be used only when the EntityDataSource instance is cast to an IDynamicDataSource interface.
The IDynamicDataSource.Exception event provides an DynamicValidatorEventArgs object that returns the Exception. The IDynamicDataSource.Exception event may be raised in the following cases:
When an object is created. This enables the partial methods on the object to raise exceptions during validation of property settings.
When an exception occurs during the execution of the query.
When an exception occurs during the execution of any INSERT, UPDATE, or DELETE operation.
.NET feedback
.NET is an open source project. Select a link to provide feedback:
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign in