RequireFields Method

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 void RequireFields(
	params string[] 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.

© 2015 Microsoft