Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

HtmlHelper.HttpMethodOverride Method (String)

Returns a hidden input element that identifies the override method for the specified HTTP data-transfer method that was used by the client.

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

public function HttpMethodOverride(
	httpMethod : String
) : MvcHtmlString

Parameters

httpMethod
Type: System.String
The HTTP data-transfer method that was used by the client (DELETE, HEAD, or PUT).

Return Value

Type: System.Web.Mvc.MvcHtmlString
The override method that uses the HTTP data-transfer method that was used by the client.

ExceptionCondition
ArgumentNullException

The httpVerb parameter is not "PUT", "DELETE", or "HEAD".

Show:
© 2015 Microsoft