我在我的 Sitecore 实例中添加了一个 Xaml 控件,并且由于某种原因它返回了一个Only one <CodeBeside> tag is allowed on each page
异常。问题是应用程序中只有一个 CodeBeside 标记(见下文)。我什至尝试删除一个 CodeBeside 标签,但我仍然遇到同样的问题。我该如何解决这个问题?
<control xmlns:def="Definition"
xmlns="http://schemas.sitecore.net/Visual-Studio-Intellisense">
<doThingy>
<FormDialog Icon="Business/32x32/messages.png"
Header="Thingy-doer"
Text="Double-click each comment to edit or delete."
OKButton="Close"
CancelButton="false">
<CodeBeside Type="Name.space.layout.layouts.Xaml.Dothingy.CommentsDisplayCodeBeside,CHLIHB.Web" />
<div>Showing comments from between these dates:</div>
<div style="outer-datepicker">
<DatePicker ID="DateLowerBound"
Width="50%" />
<DatePicker ID="DateUpperBound"
Width="50%" />
<div style="clear:both" />
</div>
<div>
<Scrollbox>
<Listview ID="ThingyListItems"
View="Details"
Width="100%"
Background="white"
DblClick="nm:doubleclick"
Click="nm:headerclick">
<ListviewHeader id="IndexHeader">
<ListviewHeaderItem Name="userName"
Header="User Name" />
<ListviewHeaderItem Name="datePosted"
Header="Date Posted" />
<ListviewHeaderItem Name="contentTitle"
Header="Article Title" />
<ListviewHeaderItem Name="commentExcerpt"
Header="Excerpt" />
</ListviewHeader>
</Listview>
</Scrollbox>
</div>
</FormDialog>
</doThingy>
</control>