This project is read-only.
Composite Web Application Block documentation | ObjectBuilder | ContextSensitiveAutoCompleteExtender | ObjectContainerDataSource


Frequently, developers have to perform validations that cannot be entirely completed on the client computer because they require resources in the server, such as a list of valid values against which to validate the input. In those cases, ASP.NET developers typically use validation controls that perform custom server-side validations (that is, CustomValidator controls). This kind of validation controls requires full postbacks to do the validation.
This Validation Bundle includes an extender control named ServerSideValidationExtender. By using this control, ASP.NET developers can invoke existing server-side validators through an asynchronous callback, without performing a full postback to the server.
By using the ServerSideValidationExtender control, UI responsiveness is improved and the application code is simplified because the extender encapsulates the logic to asynchronously interact with the server. Thus, developers can focus entirely on the validation logic and do not have to handle low-level communication implementation details.
The ServerSideValidationExtender control can extend the PropertyProxyValidator control provided by the Validation Application Block. By combining the ServerSideValidationExtender and the Validation Application Block, you can encapsulate validation best practices into easily maintainable code that you can reuse. By using encapsulation, you can separate the application code from the validation logic. A common situation where the Validation Application Block works well is when your validation code must work across multiple layers of the application's architecture.
For more information about the Validation Application Block, see Introduction to the Validation Application Block in the Enterprise Library documentation.


To use the ServerSideValidationExtender control, you must have the following: Note:
The ServerSideValidationExtender control is included in the AjaxControlToolkit.WCSFExtensions.dll assembly located in the Bin folder of this bundle. The control also ships as source code (the source code is located in the AjaxControlToolkit.WCSFExtensions folder). To build the source code, you must add the AjaxControlToolkit assembly (version 1.0.10618.0) to the Lib folder of the bundle.

Using the Control

To use the control
  1. In your Web site, add references to the AjaxControlToolkit.WCSFExtensions.dll assembly and the AjaxControlToolkit.dll assembly.
  2. Add the ServerSideValidationExtender control to the Toolbox (this step is necessary only if you do not see the ServerSideValidationExtender control in the Toolbox). To add the ServerSideValidationExtender control to the Toolbox, right-click the Validation tab in the Toolbox, and then click Choose Items. On the .NET Framework Components tab, click Browse, select the AjaxControlToolkit.WCSFExtensions.dll assembly, and then click Open. In the list of components, select the ServerSideValidationControl control, and then click OK.
  3. Drag a ServerSideValidationExtender control to the Web page and set the TargetControlID property to the ID of the validator for which you want to add AJAX capabilities.
Composite Web Application Block documentation | ObjectBuilder | ContextSensitiveAutoCompleteExtender | ObjectContainerDataSource

Last edited Nov 19, 2007 at 8:58 PM by siacomuzzi, version 2


No comments yet.