ValidationHelper.RequireField Method (String, String)
Registers the specified field as one that requires user entry and registers the specified string as the error message to display if no value is supplied.
Assembly: System.Web.WebPages (in System.Web.WebPages.dll)
Parameters
- field
- Type: System.String
The name (value of the name attribute) of the user input element to validate.
- errorMessage
- Type: System.String
The error message.
Show: