FormVariableBinder Class
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
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 | Initialize the binder with property values |
![]() |
Unbind | Unbinds form variables into the specified target object
public bool Unbind()
public List
|
![]() |
BindingErrors | Binding Errors that occur on unbinding 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. |
![]() |
PropertyExclusionList | List of exceptions that aren't to be bound. Uses the Form variable name.Values in the list can either be:* Full key name that includes the Prefix (ie. "Product.Price")* Partial key name that has… |
![]() |
PropertyInclusionList | Explicit List of properties that should be unbound.If you specify **any** values in this list **only** thesekeys will be checked for in the Request.Form collection - allothers are excluded regardless… |
![]() |
Request |
Assembly: Westwind.AspNetCore.dll
© West Wind Technologies, 2025 • Updated: 2025-03-08
Comment or report problem with topic