Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Returns the HTTP method that handles form input (GET or POST) as a string.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
public static string GetFormMethodString(
FormMethod method
)
public:
static String^ GetFormMethodString(
FormMethod method
)
static member GetFormMethodString :
method:FormMethod -> string
Public Shared Function GetFormMethodString (
method As FormMethod
) As String
Parameters
method
Type: System.Web.Mvc.FormMethodThe HTTP method that handles the form.
Return Value
Type: System.String
The form method string, either "get" or "post".
Remarks
This method is used to render the form method as an XHTML attribute. Therefore, it returns a lowercase string.
See Also
HtmlHelper Class
System.Web.Mvc Namespace
Return to top