asp.net.ph

MenuItem.DataItem Property

System.Web.UI.WebControls Namespace   MenuItem Class


.NET Framework version 2.0

Returns the data item bound to the MenuItem control.

Syntax


Script [ Object variable = ] MenuItem.DataItem

This property can only be used programmatically; it cannot be set when declaring the control.

Property Value


variable An Object that represents the data item bound to the MenuItem control.

The property is read only with no default value.

Remarks

Use the DataItem property to access the data item bound to the MenuItem control. The data item is often used to access the field value of the current record in the data source directly.

NOTE: This property is available only after data binding has occurred; otherwise, this property returns a null reference ( Nothing in Visual Basic ).

See Also

MenuItem Members 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