This class provides a thin wrapper around the .Net Web Page class by providing
simple interfaces for the databinding features. This includes BindData and UnbindData
methods (as well as auto-hookup for DataBind), support for Validation Error Messages
and methods to provide combination of Business object and Binding errors into a single
collection which can be used for display.
System.Web.UI.Control
System.Web.UI.TemplateControl
System.Web.UI.Page
Westwind.Web.Controls.wwWebForm
public class wwWebForm : Page
Class Members
Member | Description | |
---|---|---|
Constructor |
||
AddBindingError |
Adds a new binding error to the collection of internal binding errors. This method allows you to easily add a new error to the collection of existing errors that might have occurred during unbinding of control data. public void AddBindingError(string Message, string ControlID) public void AddBindingError(string Message) |
|
AddValidationErrorsToBindingErrors |
Takes a collection of ValidationErrors and assigns it to the matching controls. These controls must match in signature as follows: Must have the same name as the field and a 3 letter prefix. For example, public void AddValidationErrorsToBindingErrors( ValidationErrorCollection Errors ); |
|
BindData |
Binds all the controls on the form that implement the IwwWebDataControl public void BindData(); public void BindData( Control Container ); |
|
DataBind |
Do the standard DataBinding if used. Then call the custom FormBindData method public virtual void DataBind(); |
|
SetControlError |
Sets an error message on a bound IwwWebDataControl. public bool SetControlError( string ControlName, |
|
UnbindData |
Unbinds custom data bound controls from the container specified into their underlying BindingSource objects/fields. public BindingErrors UnbindData(); public BindingErrors UnbindData( Control Container ); |
|
ErrorIconUrl |
The Url to the image icon that is used when an error occurs. | |
FocusedControl |
Assigns focus to the specified control. Note the name must match the exact |
Requirements
Namespace: Westwind.Web.ControlsAssembly: wwwebcontrols.dll
© West Wind Technologies, 1996-2018 • Updated: 12/17/05
Comment or report problem with topic