让我的本地网站副本为我目前正在工作的公司工作有些麻烦。这是相应的代码和错误。
<ajaxToolkit:CalendarExtender FirstDayOfWeek="Monday" CalendarMode="Month" PopupPosition="BottomLeft"
TargetControlID="ManufacturedMonth" OnClientDateSelectionChanged="ValidateDate"
ID="CalendarExtender1" Format="yyyy-MM" PopupButtonID="CalBtn2" runat="server">
</ajaxToolkit:CalendarExtender>
错误57键入&#39; AjaxControlToolkit.CalendarExtender&#39;没有名为&#39; CalendarMode&#39;的公共财产。
<ajaxToolkit:CalendarExtender FirstDayOfWeek="Monday" CalendarMode="Month" PopupPosition="BottomLeft"
TargetControlID="ManufacturedMonth" ID="CalendarExtender1" Format="yyyy-MM" PopupButtonID="CalBtn2" runat="server"/>
<br /> </div>
错误58类型&#39; AjaxControlToolkit.CalendarExtender&#39;没有名为&#39; CalendarMode&#39;。
的公共属性答案 0 :(得分:0)
此错误消息表明在正在备份此控件的.NET类中没有公共CalendarMode属性 请替换:
<ajaxToolkit:CalendarExtender FirstDayOfWeek="Monday" PopupPosition="BottomLeft"
TargetControlID="ManufacturedMonth" OnClientDateSelectionChanged="ValidateDate"
ID="CalendarExtender1" Format="yyyy-MM" PopupButtonID="CalBtn2" runat="server">
</ajaxToolkit:CalendarExtender>
和
<ajaxToolkit:CalendarExtender FirstDayOfWeek="Monday" PopupPosition="BottomLeft"
TargetControlID="ManufacturedMonth" ID="CalendarExtender1" Format="yyyy-MM" PopupButtonID="CalBtn2" runat="server"/>
<br /> </div>