ComponentOne WebMenus and WebBars for ASP.NET: WebMenus and WebBars for ASP.NET Task-Based Help > C1WebTopicBar Tasks > Accessing the Controls in the Content Item of the C1WebTopicBar

Accessing the Controls in the Content Item of the C1WebTopicBar

To access any control, for example a Label control, in the ContentItem of the C1WebTopicBar, use the following code:

      Visual Basic

Dim lbl As Label = Me.C1WebTopicBar1.FindControl("Label1")

Response.Write(lbl.Text)

      C#

Label lbl = this.C1WebTopicBar1.FindControl("Label1");

Reponse.Write(lbl.Text);


Send comments about this topic to ComponentOne.
Copyright © 1987-2009 ComponentOne LLC. All rights reserved.