Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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)

public static string GetInputTypeString(
	InputType 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").

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

Return to top
© 2015 Microsoft