Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Validator.Required Method

Defines a validation test that tests whether a value has been provided.

Namespace:  System.Web.WebPages
Assembly:  System.Web.WebPages (in System.Web.WebPages.dll)

public static IValidator Required(
	string errorMessage


Type: System.String
The error message to display if validation fails.

Return Value

Type: System.Web.WebPages.IValidator
The validation test.
© 2015 Microsoft