ListItem::FromString Method (String^)
.NET Framework (current version)
Creates a ListItem from the specified text.
Assembly: System.Web (in System.Web.dll)
Parameters
- s
-
Type:
System::String^
The text to display in the list control for the item represented by the ListItem.
Return Value
Type: System.Web.UI.WebControls::ListItem^A ListItem that represents the text specified by the s parameter.
.NET Framework
Available since 1.1
Available since 1.1
Text
ListControl
RadioButtonList
ListBox
DropDownList
CheckBoxList
ListItem Class
System.Web.UI.WebControls Namespace
ListBox Web Server Control Overview
RadioButton and RadioButtonList Web Server Controls Overview
CheckBox and CheckBoxList Web Server Controls Overview
BulletedList Web Server Control Overview
DropDownList Web Server Control Overview
Show: