父/子层次结构树视图示例-解析器错误 [英] Parent/Child Hierarchy Treeview Example - Parser error

查看:87
本文介绍了父/子层次结构树视图示例-解析器错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


当我下载您的代码并将其添加到我的页面时,我首先遇到此错误:
此名称" treeView"在当前上下文中不存在",这是由本节代码引起的.代码示例中是否缺少声明?

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?

private void CommonLoad()
{
  PopulateTree(treeView);
}


我尝试通过将代码更改为此来修复它:


I tried fixing it by changing the code to this:

private void CommonLoad()
       {
           PopulateTree(new TreeView());
       }


然后,我在网络上收到以下错误.有什么想法吗?

解析器错误消息:基类包含字段"VTSTreeView1",但其类型(VTS.Web.UI.ParentChildTreeView)与控件的类型(ASP.controls_parentchildtreeview_ascx)不兼容.

源错误:


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:

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>

推荐答案

在您获得此代码的文章底部的论坛中发布您的问题.

CP的文章是由来自世界各地的志愿者撰写的,不是CP雇用的几个人.因此,没有涉及CP的我已下载您的代码".

您从文章中下载了某人的代码.因此,撰写本文的人就是您询问其代码的人.
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.


这篇关于父/子层次结构树视图示例-解析器错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆