Export (0) Print
Expand All

HtmlHelper::GetFormMethodString Method

.NET Framework 4

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)

public:
static String^ GetFormMethodString(
	FormMethod method
)

Parameters

method
Type: System.Web.Mvc::FormMethod
The HTTP method that handles the form.

Return Value

Type: System::String
The form method string, either "get" or "post".

This method is used to render the form method as an XHTML attribute. Therefore, it returns a lowercase string.

Community Additions

ADD
Show:
© 2014 Microsoft