ListItem.FromString Method
.NET Framework 3.0
Creates a ListItem from the specified text.
Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)
ListItem Members
System.Web.UI.WebControls Namespace
Text
ListControl
RadioButtonList
ListBox
DropDownList
CheckBoxList
RadioButton and RadioButtonList Web Server Controls Overview
CheckBox and CheckBoxList Web Server Controls
BulletedList Web Server Control
DropDownList Web Server Control
Assembly: System.Web (in system.web.dll)
public static ListItem FromString ( String s )
public static function FromString ( s : String ) : ListItem
Not applicable.
Parameters
- s
The text to display in the list control for the item represented by the ListItem.
Return Value
A ListItem that represents the text specified by the s parameter.Use the FromString static method to create a ListItem from the specified text. This method sets the Text property of the ListItem to the text specified by the s parameter.
Reference
ListItem ClassListItem Members
System.Web.UI.WebControls Namespace
Text
ListControl
RadioButtonList
ListBox
DropDownList
CheckBoxList
Other Resources
ListBox Web Server ControlRadioButton and RadioButtonList Web Server Controls Overview
CheckBox and CheckBoxList Web Server Controls
BulletedList Web Server Control
DropDownList Web Server Control
Community Additions
ADD
Show: