日期:2014-05-17  浏览次数:20465 次

UpdatePanel 刷新不了
这是代码,不知道怎么回事,点击按钮刷新不了。麻烦帮忙看看
        <asp:ScriptManager ID="ScriptManager1" runat="server">
            </asp:ScriptManager>
        <div id="objCalender" style="width: 100%; height: 100%; overflow: auto;">
        <asp:UpdatePanel ID="UpdatePanel1" runat="server"  UpdateMode="Conditional">
         <ContentTemplate>
        <asp:Calendar ID="Calendar1" runat="server" CellPadding="10" FirstDayOfWeek="Monday"
                    OnDayRender="Calendar1_DayRender" Width="100%" 
            BorderColor="#CCCCCC" BorderStyle="None"
                    BorderWidth="1px"  BackColor="White" Font-Size="Large" 
            NextPrevFormat="ShortMonth" Height="100%">
                    <DayHeaderStyle BackColor="#99CCFF" BorderColor="#CCCCCC" />
                    <DayStyle BorderColor="#CCCCCC" BorderStyle="Solid" BorderWidth="1px" HorizontalAlign="Center"
                        VerticalAlign="Top" Font-Bold="true" />
                    <OtherMonthDayStyle CssClass="npDay" BackColor="#DDDDDD" ForeColor="Gray" />
                    <TitleStyle  BorderColor="#CCCCCC" BackColor="White" Font-Bold="true" />
                    <WeekendDayStyle CssClass="weekend" />
                </asp:Calendar>             
             </ContentTemplate>
            <Triggers>
            <asp:AsyncPostBackTrigger ControlID="showDate" EventName="Click"/>
            </Triggers>
        </asp:UpdatePanel>
        <asp:Button ID="showDate" runat="server" Text="显示" OnClick="showDate_Click" />

后台代码:
protected void Page_Load(object sender, EventArgs e)
        {
            ScriptManager1.Reg