The implementation of the routine BuildTopNavTable in this section is coded in Visual C# and was tested within a page template using Content Management Server 2002.
Classes in these two namespaces are used.
using Microsoft.Web.UI.WebControls; using Microsoft.ContentManagement.Publishing;
The function returns a Table object from the Microsoft.Web.UI.WebControls namespace.
private Table BuildTopNavTable() {
Most of the variables are declared up front, and should be self-explanatory from their names, mostly. The UI-related variables are declared first, then the variables related to Content Management Server objects.
Previous Next |