tags:

views:

13

answers:

0

I have calendar controls on my popup panel, but they doesn't react on click at all(not change months, days ..). When I put them out the panel it works fine. Does anybody know what can be problem ?

    <div style="position: relative;">
        <div style="position: absolute; left: 100px; top: -200px">
            <asp:UpdatePanel ID="upTemp" runat="server">
                <ContentTemplate>
                    <asp:Panel ID="pnlReserve" runat="server" Visible="false" Width="800" Height="600" 
                        BackColor="Aqua">
                        <asp:UpdatePanel ID="upReserve" runat="server">
                            <ContentTemplate>
                                <table>
                                   <%-- <tr>
                                        <td>
                                            <asp:Label ID="lblName" runat="server" Text="Name:"></asp:Label>
                                            <asp:TextBox ID="txtName" runat="server"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblLastName" runat="server" Text="Last name:"></asp:Label>
                                            <asp:TextBox ID="txtLastName" runat="server"></asp:TextBox>
                                        </td>
                                    </tr>--%>
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblStart" runat="server" Text="Start date:"></asp:Label>
                                            <asp:Calendar ID="clStart" runat="server" Enabled="true" Width="300"></asp:Calendar>
                                        </td>
                                        <td>
                                            <asp:Label ID="lblEnd" runat="server" Text="End date:"></asp:Label>
                                            <asp:Calendar ID="clEnd" runat="server"></asp:Calendar>
                                        </td>
                                    </tr>
                                </table>
                            </ContentTemplate>
                        </asp:UpdatePanel>
                    </asp:Panel>
                </ContentTemplate>
            </asp:UpdatePanel>
        </div>
        <asp:UpdatePanel ID="upGrid" runat="server" UpdateMode="Always">
            <ContentTemplate>
                <asp:GridView ID="gdvCar" runat="server" OnRowCommand="gdvCar_RowCommand" GridLines="Horizontal"
                    OnRowDataBound="gdvCar_DataBound">
                    <Columns>
                        <asp:BoundField DataField="id" Visible="false" />
                        <asp:BoundField DataField="producer" HeaderText="PROIZVOĐAČ" />
                        <asp:BoundField DataField="model" HeaderText="MODEL" />
                        <asp:BoundField DataField="year" HeaderText="GODIŠTE" />
                        <asp:BoundField DataField="price" HeaderText="CENA" />
                        <asp:BoundField DataField="weight" HeaderText="TEŽINA" />
                        <asp:BoundField DataField="number_seats" HeaderText="BROJ SEDIŠTA" />
                        <asp:TemplateField>
                            <ItemTemplate>
                                <asp:Image ID="imbPhotoOne" runat="server" Width="96" Height="96" ImageUrl='<%# "images/car/"+Eval("photo_one") %>' />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <asp:Image ID="imbPhotoTwo" runat="server" Width="96" Height="96" ImageUrl='<%# "images/car/"+Eval("photo_two") %>' />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <asp:Image ID="imbPhotoThree" runat="server" Width="96" Height="96" ImageUrl='<%# "images/car/"+Eval("photo_three") %>' />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <asp:ImageButton ID="imbReserve" runat="server" Width="48" Height="48" ImageUrl="images/icons/key.gif"
                                    CommandName="Reserve" CommandArgument='<%# Bind("id") %>' />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <asp:ImageButton ID="imbphone" runat="server" Width="48" Height="48" ImageUrl="images/icons/phone.jpg"
                                    CommandName="Reserve" CommandArgument='<%# Bind("id") %>' />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <asp:ImageButton ID="imbEmail" runat="server" Width="48" Height="48" ImageUrl="images/icons/email.jpg"
                                    CommandName="Reserve" CommandArgument='<%# Bind("id") %>' />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <asp:ImageButton ID="imbEdit" runat="server" ToolTip="Izmena" AlternateText="Izmena"
                                    ImageUrl="images/icons/edit.png" Width="48" Height="48" CommandName="Izmena"
                                    CommandArgument='<%# Bind("id") %>' />
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
                <ac:ModalPopupExtender ID="mod" runat="server" TargetControlID="ctl00$content$gdvCar$ctl02$imbReserve"
                    PopupControlID="pnlReserve" X="200" Y="200">
                </ac:ModalPopupExtender>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
</div>