HtmlHelper.GetFormMethodString Method (FormMethod)
Returns the HTTP method that handles form input (GET or POST) as a string.
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Parameters
- method
-
Type:
System.Web.Mvc.FormMethod
The HTTP method that handles the form.
This method is used to render the form method as an XHTML attribute. Therefore, it returns a lowercase string.
Show: