asp.net.ph

ListItem.FromString Method

System.Web.UI.WebControls Namespace   ListItem Class


Creates a ListItem from the specified string.

[ VB ]
Public Shared Function FromString ( _
   ByVal s As String _
) As ListItem

[ C# ]
public static ListItem FromString (
   string s
);

[ C++ ]
public: static ListItem* FromString (
   String* s
);

[ JScript ]
public static function FromString (
   s : String
) : ListItem;

Parameters

s
The specified string for creating a ListItem.

Return Value

A ListItem that represents the text specified by the s parameter.

Remarks

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.

See Also

ListItem Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph