troubleshooting Question

How to have modal popup work on specific day selection of calendar?

Avatar of gfedz
gfedzFlag for United States of America asked on
ASP.NET
2 Comments1 Solution1113 ViewsLast Modified:
I have a panel open when the calendar is clicked using AJAX Modal Popup Extender, any help on how to get the panel to only open when a day is selected?
<div style="text-align:center">
        <asp:Calendar ID="myCal" runat="server" Height="600px" width="900px" BorderColor="#F2F3F4" BorderWidth="3px" DayStyle-BorderWidth="1px" 
                    TodayDayStyle-BackColor="#82CAFF" NextPrevFormat="ShortMonth" SelectionMode="Day" DayHeaderStyle-Height="30px" 
                    TitleStyle-BackColor="#CBE3F0" TitleStyle-ForeColor="#153E7E" OtherMonthDayStyle-ForeColor="#B4CFEC" NextPrevStyle-ForeColor="#2554C7">
            <DayHeaderStyle Height="30px" /><TitleStyle Height="50px" />
            <DayStyle BorderWidth="1px" HorizontalAlign="Left" VerticalAlign="Top" />
            <TodayDayStyle BackColor="#CBE3F0" />
        </asp:Calendar>
    </div>

    <asp:Panel ID="pnlSelect" runat="server" width="300px" Height="400px" CssClass="modalPopup">
        <p>Hello</p>
        <asp:LinkButton ID="lnkOK" runat="server" Text="OK" />
        <asp:LinkButton ID="lnkCancel" runat="server" Text="Cancel" />
    </asp:Panel>

    <asp:ModalPopupExtender ID="ModalPopupExtender1" runat="server" TargetControlID="myCal" PopupControlID="pnlSelect"
        BackgroundCssClass="modalBackground" DropShadow="true" OkControlID="lnkOK" CancelControlID="lnkCancel">
    </asp:ModalPopupExtender>
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 2 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros