HtmlHelper.EnableClientValidation Method (Boolean)

Enables or disables client validation.

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

Syntax

'Declaration
Public Sub EnableClientValidation ( _
    enabled As Boolean _
)
'Usage
Dim instance As HtmlHelper
Dim enabled As Boolean

instance.EnableClientValidation(enabled)
public void EnableClientValidation(
    bool enabled
)
public:
void EnableClientValidation(
    bool enabled
)
public function EnableClientValidation(
    enabled : boolean
)

Parameters

  • enabled
    Type: System.Boolean
    true to enable client validation; otherwise, false.

See Also

Reference

HtmlHelper Class

EnableClientValidation Overload

System.Web.Mvc Namespace