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 HTML input control type as a string.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
'Declaration
Public Shared Function GetInputTypeString ( _
inputType As InputType _
) As String
public static string GetInputTypeString(
InputType inputType
)
public:
static String^ GetInputTypeString(
InputType inputType
)
Parameters
- inputType
Type: System.Web.Mvc.InputType
The 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.