I have this database driven menu for a client, I don't remember why I set it up like this, but now they want a change that I can't seem to implement. Here's the code:
Sub PopulateMenu() Dim dst As System.Data.DataSet = GetMenuData() For Each masterRow As System.Data.DataRow In dst.Tables("Menu_12").Rows Dim masterItem As New MenuItem(CType(masterRow("CategoryName"), String), "", "", "~/content_12.aspx?ID=" + CType(masterRow("CategoryID"), String), "_parent") NavigationMenu.Items.Add(masterItem) Dim subCatRows() As System.Data.DataRow = masterRow.GetChildRows("Children") For Each row As System.Data.DataRow In subCatRows Dim subCatName As String = CType(row("SubCatName"), String) Dim childItem As New MenuItem(subCatName, "", "", "~/content_12.aspx?CatID=" + CType(row("CategoryID"), String) + "&SubCatID=" + CType(row("SubCatID"), String), "_parent") masterItem.ChildItems.Add(childItem) Next Next End SubHere's the problem. They want just one of the items to go to a website, not to a page on their site. How do I make it so that one item does that? I hope that makes sense. Any help is much appreciated.
Last edited by a moderator: