错误:键入' AjaxControlToolkit.CalendarExtender'没有名为' CalendarMode'的公共财产。

时间:2014-05-13 13:06:10

标签: c# javascript visual-studio-2010 ajaxcontroltoolkit

让我的本地网站副本为我目前正在工作的公司工作有些麻烦。这是相应的代码和错误。

<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;。

的公共属性

1 个答案:

答案 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>