HtmlHelper.GetFormMethodString(FormMethod) HtmlHelper.GetFormMethodString(FormMethod) HtmlHelper.GetFormMethodString(FormMethod) Method

Definition

Returns the HTTP method that handles form input (GET or POST) as a string.

public static string GetFormMethodString (System.Web.Mvc.FormMethod method);
static member GetFormMethodString : System.Web.Mvc.FormMethod -> string
Public Shared Function GetFormMethodString (method As FormMethod) As String

Parameters

method
FormMethod FormMethod FormMethod

The HTTP method that handles the form.

Returns

The form method string, either "get" or "post".

Applies to