Irwsoft NETCore Asp

Menu
Brief Information
DescriptionA tag-helper to menu items.
FeaturesMenu property schema that allowed to bind multiple data types (Xml, Class and Inline ASPX).
Three types of menu item they are Click-button, Link and Check-button.
Displays image and/or text.
Menu tag-helper
Menu tag-helper displays child menus behaviour.


The INA ASP.net Menu tag-helper is a tag-helper to provide menu items. There are three types of menu item, they are ClickButton, Link and CheckButton. The menu item can display image and/or text.

The Menu tag-helper can accept three types of data. The XML data type which contains single record with custom xml data of menu. The object model data type can be represented as ORM of a relational database or any custom class collection of menu item. Both of them need to define menu property schema that connect data with menu item. The following example defines inline ASPX markup of Menu.

Inline ASPX markup code for Menu

// 1) Defines the Menu tag-helper
<Menu ID="MN1" Orientation="Horizontal" SkinStyle="Lime">
     <MenuItem Name="Home" Mode="ClickButton" ImageUrl="../Img/home.png" />
     <MenuItem Name="Products" Mode="ClickButton" ImageUrl="../Img/product.png"/>
          <MenuItem Name="Clothes" Mode="ClickButton" ImageUrl="../Img/clothes.png" Text="Shirts & Pants"/>
               <MenuItem Name="Shirts" Mode="Link" ImageUrl="../Img/shirt.png" Text="Adult Shirts" NavigateUrl="shirt.aspx" />
               <MenuItem Name="Pants" Mode="Link" ImageUrl="../Img/pants.png" Text="Adult Pants" NavigateUrl="pants.aspx" />
          </MenuItem>
          <MenuItem Name="FoodBeverages" Mode="ClickButton" ImageUrl="../Img/foodAbeverages.png" Text="Food & Beverages"/>
               <MenuItem Name="Milk" Mode="Link" ImageUrl="../Img/milk.png" Text="Milk" NavigateUrl="milk.aspx" />
               <MenuItem Name="Soda" Mode="Link" ImageUrl="../Img/soda.png" Text="Soda" NavigateUrl="soda.aspx" />
          </MenuItem>
     </MenuItem>
     <MenuItem Name="Orders" Mode="Link" ImageUrl="../Img/order.png" NavigateUrl="order.aspx" />
     <MenuItem Name="Cart" Mode="Link" ImageUrl="../Img/cart.png" NavigateUrl="cart.aspx" />
</Menu>



Related Topics :


Irwsoft Data Ultimate Edition 4.0 supports data-schema extension (entity framework, linq to sql, simple class, and etc).