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




Previous page Back to top Next page

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

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