I have a TreeView which is producing a JavaScript error when I click on the TreeNode.
I suspect it may be related to the fact the TreeNode is not recognized in the web page where I am using it.
I have downloaded the TreeView control and registered it in the page but TreeNode throws out the error:
"Element 'TreeNode' is not a known element. This can occur if there is a compilation error in the Web site. "
The HTML for the TreeView is shown below:
<iewc:TreeView ID="tvMeterGroups" runat="server" SystemImagesPath="../webctrl_client/1_0/treeimages/"
ExpandLevel="1" DefaultStyle="font-family:Arial;" ShowToolTip="False" ImageUrl="../images/folder.gif"
ExpandedImageUrl="../images/folderopen.gif" Width="816px" OnSelectedIndexChange="tvMeterGroups_SelectedIndexChange">
<iewc:TreeNode Expanded="True" Expandable="Always" Text="My Groups"></iewc:TreeNode>
</iewc:TreeView>
The TreeView namsepace (Microsoft.Web.UI.WebControls) is registered in the page:
<%@ Register TagPrefix="iewc" Namespace="Microsoft.Web.UI.WebControls" Assembly="Microsoft.Web.UI.WebControls" %>
and the iewc:TreeView tag seems to be picked up.
But the TreeNode is not being recognized.
Does anyone have any idea what may be wrong? This is driving me mad! :-)
Thanks in advance.