HtmlHelper.GetInputTypeString Method (InputType)
Returns the HTML input control type as a string.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
public static string GetInputTypeString(
InputType inputType
)
public:
static String^ GetInputTypeString(
InputType inputType
)
static member GetInputTypeString :
inputType:InputType -> string
Public Shared Function GetInputTypeString (
inputType As InputType
) As String
Parameters
inputType
Type: System.Web.Mvc.InputTypeThe enumerated input type.
Return Value
Type: System.String
The input type string ("checkbox", "hidden", "password", "radio", or "text").
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