HtmlHelper.CheckBox Method

Include Protected Members
Include Inherited Members

Returns an HTML check box control for use in a web page.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Public method CheckBox(String) Returns an HTML check box control that has the specified name.
Public method CheckBox(String, Boolean) Returns an HTML check box control that has the specified name and default checked status.
Public method CheckBox(String, IDictionary<String, Object>) Returns an HTML check box control that has the specified name and custom attributes defined by an attribute dictionary.
Public method CheckBox(String, Object) Returns an HTML check box control that has the specified name and custom attributes defined by an attribute object.
Public method CheckBox(String, Boolean, IDictionary<String, Object>) Returns an HTML check box control that has the specified name, default checked status, and custom attributes defined by an attribute dictionary.
Public method CheckBox(String, Boolean, Object) Returns an HTML check box control that has the specified name, default checked status, and custom attributes defined by an attribute object.

Top

Remarks

The HTML check box control is returned as HTML markup that can be used to render the control in a web page.

See Also

Reference

HtmlHelper Class

System.Web.WebPages.Html Namespace