0 out of 1 rated this helpful - Rate this topic

HtmlHelper.GetInputTypeString Method

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
)

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").

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

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.