Export (0) Print
Expand All

Validator.Url Method

Defines a validation test that tests whether a value is a well-formed URL.

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

public static IValidator Url(
	string errorMessage
)

Parameters

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

Return Value

Type: System.Web.WebPages.IValidator
The validation test.

The test does not determine whether the URL is valid, only that it is well formed.

Show:
© 2014 Microsoft