区分错误:
'Telerik.Web.UI.RadTreeView‘不包含'IsCallBack’的定义,也找不到接受'Telerik.Web.UI.RadTreeView‘类型的第一个参数的扩展方法'IsCallBack’(您缺少使用指令还是程序集引用?)
代码:
  protected void Page_Load(object sender, EventArgs e)
  {
     if (!this.IsPostBack && !this.sectionTree.IsCallBack)
     {
        //populate the first level of tree nodes
        foreach (SiteSection section in SiteSectionCollection.GetRootSections())
        {
           RadTreeNode node = new RadTreeNode(section.Name, section.AssetId.ToString());
           node.ExpandMode = ExpandMode.ServerSideCallBack;
           this.sectionTree.Nodes.Add(node);
        }
     }
  }区分错误:
'Telerik.Web.UI.RadComboBox‘不包含'IsCallBack’的定义,也找不到接受'Telerik.Web.UI.RadComboBox‘类型的第一个参数的扩展方法'IsCallBack’(您缺少使用指令还是程序集引用?)
代码:
  protected void Page_Load(object sender, EventArgs e)
  {
     if (!this.IsPostBack && !this.sectionTree.IsCallBack)
     {
        //populate the first level of tree nodes
        foreach (SiteSection section in SiteSectionCollection.GetRootSections())
        {
           RadTreeNode node = new RadTreeNode(section.Name, section.AssetId.ToString());
           node.ExpandMode = ExpandMode.ServerSideCallBack;
           this.sectionTree.Nodes.Add(node);
        }
     }
  }区分错误:
'Telerik.Web.UI.RadTreeView‘不包含'AutoPostBack’的定义,也找不到接受'Telerik.Web.UI.RadTreeView‘类型的第一个参数的扩展方法'AutoPostBack’(您缺少使用指令还是程序集引用?)
代码:
  protected override void OnPreRender(EventArgs e)
  {
     base.OnPreRender(e);
     if (rtvTreeView != null)
        rtvTreeView.AutoPostBack = NodeClick != null;
     cmbCombobox.AutoPostBack = ItemsRequested != null;
  }背景:
当从"RadControls for ASP.NET“升级到"RadControls for ASP.NET AJAX”时,我遇到了几个问题。升级向导转换了web.config文件。我从233个.NET编译错误(28个不同的错误)开始,我很快就解决了这些错误,但是我仍然有36个错误(13个不同的问题),这些错误都是我还没有解决的。我会将这13个错误作为堆栈溢出的问题发布,以节省一些时间。在我等待的时候,我会尝试下载他们的控制演示,了解控件是如何为他们的最新版本工作的,并自己回答那些其他人还没有回答的问题。
发布于 2011-09-26 21:15:14
错误#1和#2:
protected void Page_Load(object sender, EventArgs e)
  {
     if (!this.IsPostBack && !this.Page.IsCallBack)
     {
        //populate the first level of tree nodes
        foreach (SiteSection section in SiteSectionCollection.GetRootSections())
        {
           RadTreeNode node = new RadTreeNode(section.Name, section.AssetId.ToString());
           node.ExpandMode = ExpandMode.ServerSideCallBack;
           this.sectionTree.Nodes.Add(node);
        }
     }
  }https://stackoverflow.com/questions/7261333
复制相似问题