ASP.NET experts, can you answer this question?

  • Thread starter Thread starter commandrix
  • Start date Start date
C

commandrix

Guest
The problem's in my items.aspx.vb file. The bizarre thing is that it was working until just this afternoon and I haven't touched it. Now I'm getting six "Name 'TreeViewCategories' is not declared" error. I was wondering if somebody could tell me 1) What is 'TreeViewCategories' and 2) How can I declare it in a way that will work? Here's part of the affected code if it helps:
If Not IsPostBack Then
TreeViewCategories.Nodes.Clear()
Dim categories As List(Of Category) = Catalog.GetChildCategories([String].Empty) ' get root level ones
Dim c As Category
For Each c In categories
Dim newNode As New TreeNode(c.Title, c.Id)
newNode.SelectAction = TreeNodeSelectAction.SelectExpand
newNode.NavigateUrl = "Items.aspx?catId=" + c.Id
TreeViewCategories.Nodes.Add(newNode)
 
Back
Top