Export (0) Print
Expand All

ValidationHelper.RequireFields Method

Registers the specified fields as ones that require user entry.

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

'Declaration
Public Sub RequireFields ( _
	ParamArray fields As String() _
)
'Usage
Dim instance As ValidationHelper 
Dim fields As String()

instance.RequireFields(fields)

Parameters

fields
Type: System.String()
The names (value of the name attribute) of the user input elements to validate. You can specify any number of element names, separated by commas.

This method does not let you specify custom error messages.

Show:
© 2014 Microsoft