简体   繁体   English

更新面板打破了我的日历

[英]Update panel breaking my calendar

The following asp:Calendar controls don't seem to want to work inside of the asp:UpdatePanel items. 以下asp:Calendar控件似乎不希望在asp:UpdatePanel项中工作。 By don't work, I mean they are visible, but you cannot change the date or month. 不起作用,是指它们可见,但是您不能更改日期或月份。 Remove the asp:UpdatePanel and it works. 删除asp:UpdatePanel Is this a known bug? 这是一个已知的错误? Is there something I'm doing wrong? 我做错了什么吗? Anyone have any insight they could offer on this? 任何人都可以对此提供任何见解?

            <asp:UpdatePanel ID="UpdatePanelc" runat="server">
                <ContentTemplate>
                    <div class="centerAlign">
                        <div class="inline">
                            <label ID="lblPostingAvailable" runat="server" class="labelMediumInline">*Posting Available</label>
                            <asp:Calendar ID="calFromDate" runat="server" OnSelectionChanged="calFromDate_SelectionChanged"></asp:Calendar>
                        </div>
                        <div  class="inline">
                            <label ID="lblTo" runat="server" class="labelMediumInline">Posting Expires</label>
                            <asp:Calendar ID="calToDate" runat="server" OnSelectionChanged="calToDate_SelectionChanged"></asp:Calendar>
                        </div>
                    </div>
                </ContentTemplate>
            </asp:UpdatePanel>

maybe try to add: 也许尝试添加:

 <asp:ScriptManager runat="server"> </asp:ScriptManager> 

above the: 以上:

 <asp:UpdatePanel ID="UpdatePanelc" runat="server"> 

good luck 祝好运

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM