private HtmlGenericControl BindPages()
{
// recursivly get all children of the root page
HtmlGenericControl ul = GetChildren(Guid.Empty);
// items that will be appended to the end of menu list
AddMenuItem(ul, Contact, "~/contact.aspx");
if (Security.IsAuthenticated)
{
AddMenuItem(ul, Logoff, "~/Account/login.aspx?logoff");
}
else
{
AddMenuItem(ul, Logon, "~/Account/login.aspx");
}
return ul;
}