asp.net.ph

MenuItem Constructor ( String, String, String, String, String )

System.Web.UI.WebControls Namespace   MenuItem Class


.NET Framework version 2.0

Initializes a new instance of the MenuItem class with the specified menu text, value, image, destination, and target.

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

[ C# ]
public MenuItem (
   string text,
   string value,
   string imageUrl,
   string destination,
   string target
);

[ C++ ]
public: MenuItem (
   String* text,
   String* value,
   String* imageUrl,
   String* destination,
   String* target
);

[ JScript ]
public function MenuItem (
   text : String,
   value : String,
   imageUrl : String,
   destination : String,
   target : String
);

Parameters

text
The text to display for the MenuItem.
value
The value associated with the MenuItem.
imageUrl
The URL to an image associated with the MenuItem.
destnation
The destination URL associated with the MenuItem.
target
The target window or frame in which to display the Web page content associated with the MenuItem.

Remarks

Use this constructor to initialize a new instance of the MenuItem class using the specified menu text, value, image, destination, and target.

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

Property Initial Value
Text The value of the text parameter.
Value The value of the value parameter.
ImageUrl The value of the imageUrl parameter.
NavigateUrl The value of the destination parameter.
Target The value of the target parameter.

See Also

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