APNSoft.com - Web Controls, components for ASP.NET
 About Us 
 Articles 
 Products
 Downloads 
 Purchase
 Support

Menu
Controls Suite 4.5


Overview
Features
Reference Book
Live Demos
Populating with Data
XML File
Database
Dynamically
Appearance
Behavior
Programming
Application scenarios




File 
Edit 
View 
Help 



This example demonstrates how to populate a Menu from the Database. You should set the DataSource property to specify a source of data and call the DataBind() method.

Each record in the DataTable represents Menu element (item or separator depending on the Type field). Fields represent item attributes. Menu supports building multiple levels of hierarchy (the ID/ParentID model) from a single table in the data source.

In this example, the Menu takes the structure from MS Access Database. You can also use SQL Server or other data source.



Code Samples:


© 2003-2017 APNSoft. All rights reserved.    Terms of use.