Glossary Item Box

Controls: NavBar overviewNavBar - server side API

Client-side API: Client side API

See Also AspLib component library Send comments on this topic.

Nesting controls

The NavBar control can contain your own custom content. The NavBar item can contain compiled server-side controls and user controls.

 

For example, AspLib Calendar control:

 

Sample code:

 

AspLib.WebControls.Calendar cal = new AspLib.WebControls.Calendar();

 

protected override void OnInit(EventArgs e)

{

     NavBarGroupControl gr = (NavBarGroupControl)NavBar1.MenuStructure[1];

     NavBarItemControl item = (NavBarItemControl)gr.GroupStructure[0];

     cal.AutoPostBack = true;

     cal.Value = DateTime.Now;

     cal.DateChanged += new EventHandler(Calendar_DateChanged);

     cal.Width = Unit.Percentage(100);

     cal.CurrDayForeColor = Color.Blue;

     item.Controls.Add(cal);

}

Controls: NavBar overviewNavBar - server side API

Client-side API: Client side API

 

 


© 2002-2007 Astron Digital. All Rights Reserved.