The class that provides FormVariable to Model binding by matching FormVariable names to the model's properties including child properties. You can specify a
The base behavior is similar to ASP.NET MVC's ModelBinder's binding operation minus the validation features.
Westwind.Web.FormVariableBinder
public class FormVariableBinder : object
Remarks
Note on Child Property Separators: WebForms doesn't support '.' characters in ID= values so you will need to specify a FormVarPropertySeparator. A good value to use is '_' (two underscores) to allow for underscores in actual properties. If you know your properties don't have underscores then a single '' will also work. The separator is converted to . when parsing for child property names.
Class Members
Member | Description | |
---|---|---|
Constructor |
||
Unbind |
Unbinds form variables into the specified target object public bool Unbind() public static List |
|
BindingErrors |
Binding Errors that occur on unbining into the model | |
FormVarPropertySeparator |
The character used as a separator in the HTML form for child properties (ie. Address.Street or Address.Phone.Home) Default value is a . | |
Model |
An object to bind to | |
Prefixes |
An optional prefix on form variables to unbind. Can also specify multiple prefixes separated by commas. | |
PropertyExceptionList |
List of exceptions that aren't to be bound. Uses the Form variable name. |
Requirements
Namespace: Westwind.WebAssembly: westwind.web.dll
© West Wind Technologies, 1996-2016 • Updated: 12/12/15
Comment or report problem with topic