明显错误:
当前上下文中不存在名称“ExpandMode”
代码:
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);
}
}
}
背景:
从“RadControls for ASP.NET”升级到“RadControls for ASP.NET AJAX”时,我遇到了几个问题。web.config 文件由升级向导转换。我从 233 个 .NET 编译错误(28 个不同的错误)开始,我很快解决了这些错误,但我仍然有 36 个错误(13 个不同的问题)来自我仍未解决的剧烈 API 更改。我会将这 13 个错误作为堆栈溢出问题发布,以节省一些时间。在等待期间,我将尝试下载他们的控件演示,并了解控件在最新版本中的工作原理,并亲自回答其他人没有回答的问题。