![]() ![]() |
|
Open Client Developer's Guide | |
Search | Index | Glossary | | |
![]() |
|
![]() |
![]() |
![]() |
Error Handling by User ControlsUser Controls are normally used to display data or getting input from the users. ASP.NET provides a variety of Validators that can assist with validating the data in the controls. The Validators are not displayed in the page when the data supplied by the user is valid. The error messages are only displayed when the data and control to be validated do not meet the the condition(s) specified by the Validator. Another feature of using Validators is that the initial validation is performed on the client side, preventing a performance hit back to the server. Follow these steps to implement User Control Validators:
Control Factory controls also use Validators to validate most of the simple-value controls. These controls are configurable by specifying which property of the control should be validated, prior to sending the data to the server. Pages that do not use Control Factory controls, can use standard Validators to validate control data as applicable. To validate other, non-UI related errors, follow the error handling mechanism for the foundation classes as described in How Errors are Handled by Data Providers and Foundation Classes.
|
![]() |
|