HttpMethod Property

RemoteAttribute.HttpMethod Property

 

Gets or sets the HTTP method used for remote validation.

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

public string HttpMethod { get; set; }

Property Value

Type: System.String

The HTTP method used for remote validation. The default value is "Get".

The HTTP method can be "Get" or "Post".

Return to top
Show:
© 2016 Microsoft