asp.net.ph

ListItem Constructor ( String, String )

System.Web.UI.WebControls Namespace   ListItem Class


Initializes a new instance of the ListItem class with the specified text and value data.

[ VB ]
Overloads Public Sub New ( _
   ByVal text As String, _
   ByVal value As String _
)

[ C# ]
public ListItem (
   string text,
   string value
);

[ C++ ]
public: ListItem (
   String* text,
   String* value
);

[ JScript ]
public function ListItem (
   text : String,
   value : String
);

Parameters

text
The text to display for the ListItem.
value
The value associated with the ListItem.

Remarks

Use this constructor to initialize a new instance of the ListItem class using the specified text and value.

The following table shows initial property values for an instance of ListItem.

Property Initial Value
Text The value of the text parameter.
Value The value of the value parameter.

See Also

ListItem Members   ListItem Constructor Overload List 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