Talk about waste of time! I spend hours and hours trying to figure out that how to get the PopUpControlExtender work with a simple TextBox control and the Calendar control. The control works but does a postback so I placed it inside the UpdatePanel control but then it was throwing exceptions about the Duplicate id's.

Anyway, the code below works well but does a postback to the server.

<atlas:ScriptManager ID="sm" runat="server" EnablePartialRendering="true" />    
          
         
        <asp:Panel ID="up" runat="server">
         <asp:TextBox ID="txtDate" runat="server" />
         </asp:Panel>
      
        
          <atlas:UpdatePanel ID="up6" runat="server"> 
      
            
        <ContentTemplate>                  
      <cc1:PopupControlExtender ID="PopupControlExtender1" runat="server">
      <cc1:PopupControlProperties PopupControlID="Calendar1"
      TargetControlID="txtDate"
       Position="Bottom" />
      </cc1:PopupControlExtender>     
          </ContentTemplate>
         </atlas:UpdatePanel>  
      
      
        <asp:Calendar ID="Calendar1" runat="server"
        BackColor="#FFFFCC" BorderColor="#FFCC66"
            BorderWidth="1px" DayNameFormat="Shortest" 
            Font-Names="Verdana" Font-Size="8pt"
            ForeColor="#663399" Height="20px" ShowGridLines="True"
            Width="20px" OnSelectionChanged="Calendar1_SelectionChanged">
            <SelectedDayStyle BackColor="#CCCCFF" Font-Bold="True" />
            <TodayDayStyle BackColor="#FFCC66" ForeColor="White" />
            <SelectorStyle BackColor="#FFCC66" />
            <OtherMonthDayStyle ForeColor="#CC9966" />
            <NextPrevStyle Font-Size="9pt" ForeColor="#FFFFCC" />
            <DayHeaderStyle BackColor="#FFCC66" Font-Bold="True"
            Height="1px" />
            <TitleStyle BackColor="#990000" Font-Bold="True" Font-Size="9pt"
            ForeColor="#FFFFCC" />
        </asp:Calendar>

powered by IMHO 1.3