This documentation is archived and is not being maintained.

LookupField.Validate Method

Windows SharePoint Services 3

Verifies that the value of Value meets all restrictions on field content such as length, format, and data type.

Namespace:  Microsoft.SharePoint.WebControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel = true)]
public override void Validate()

Implements

IValidator.Validate()

Value is the value of the child drop-down list in the UI, not the underlying value (which is ItemFieldValue) of the SPFieldLookup object that has the LookupField as its FieldRenderingControl property. Use Validate only when you need validation of the UI value. To validate ItemFieldValue, use GetValidatedString().

Show: