Otter SDK Reference
Version:

SelectListItem Class

A basic list item for use in a SelectList.

Inheritance Hierarchy

  • object
    • Inedo.Web.Controls.SelectListItem

Syntax

public class SelectListItem : System.Web.UI.IAttributeAccessor

Constructors

Name Description
SelectListItem(string text)

Initializes a new instance of the SelectListItem class.

SelectListItem(string text, string value)

Initializes a new instance of the SelectListItem class.

SelectListItem(string text, string value, bool selected)

Initializes a new instance of the SelectListItem class.

SelectListItem(string text, string value, bool selected, string optionGroup)

Initializes a new instance of the SelectListItem class.

Properties

Name Description
Attributes

Gets the attributes.

OptionGroup

Gets or sets the name of the option group this should be grouped in.

Selected

Gets or sets a value indicating the "selected" attribute will be written.

Text

Gets or sets the text to be rendered.

Value

Gets or sets the value attribute.