CookieAttribute.ValidateInput Property

.NET Framework (current version)
 

Gets or sets a value that specifies whether cookie values should be validated.

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

abstract ValidateInput : bool with get, set
override ValidateInput : bool with get, set

Property Value

Type: System.Boolean

true if cookie values are validated; otherwise, false. The default is true.

For a tutorial series on using model binding with Web Forms, see Model Binding and Web Forms.

.NET Framework
Available since 4.5
Return to top
Show: