Click here to Skip to main content
15,881,687 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hi,
When i download your code and added it to my page, i first get this error:
"the name 'treeView' does not exist in the current context", which is caused by this section of code. Is there a declaration missing in the code example?
XML
private void CommonLoad()
{
  PopulateTree(treeView);
}

I tried fixing it by changing the code to this:
XML
private void CommonLoad()
       {
           PopulateTree(new TreeView());
       }

Then i get the following error on the web. Any ideas?

Parser Error Message: The base class includes the field 'VTSTreeView1', but its type (VTS.Web.UI.ParentChildTreeView) is not compatible with the type of control (ASP.controls_parentchildtreeview_ascx).

Source Error:
XML
Line 103:       <form id="form1" runat="server">
Line 104:            <div id="divNavigation" >
Line 105:               <ucl:VTSTreeView id="VTSTreeView1" runat="server" />
Line 106:
Line 107:            </div>
Posted
Updated 15-Mar-12 8:12am
v2
Comments
Steve Maier 15-Mar-12 14:15pm    
Added pre tags

1 solution

Post your question in the forum at the bottom of the article you got this code from.

CP articles are written by volunteers from all over the world, not a few individuals employed by CP. So, there is no "I downloaded YOUR code", referring to CP.

You downloaded someones code from an article. So, the person who wrote the article would be the person you ask about their code.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900