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)

public function RequireFields(
	... fields : String[]


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.

© 2014 Microsoft