Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi All,

I am using ajax model popup extender to show the popup on date cell in calendar control in asp.net using c#.

When I do mouse over on the date cell popup is blinking.
Please help to resolve this issue. Thank in advance.
Below is the code:

XML
<script language="javascript" type="text/javascript">

        function ShowModalPopup() {
            $find("ModalBehaviour").show();
        }

        function HideModalPopup() {
            $find("ModalBehaviour").hide();
        }

    </script>


XML
<asp:Panel ID="Panel1" runat="server" Style="display: none;">
        <div>
            <table border="1">
                <tr>
                    <td>
                        Case Hearing:
                    </td>
                    <td>
                        <asp:Label ID="hylCaseHearing" Text="1" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        Notice Reply:
                    </td>
                    <td>
                        <asp:Label ID="hylNoticeReply" Text="2" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        Contract Expiry:
                    </td>
                    <td>
                        <asp:Label ID="hylContractExpire" Text="3" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        IPR Expiry:
                    </td>
                    <td>
                        <asp:Label ID="hplIPRExpire" Text="4" runat="server"></asp:Label>
                    </td>
                </tr>
            </table>
            <asp:HiddenField ID="hdntest" runat="server" />
        </div>
    </asp:Panel>
    <asp:Button ID="btn1" OnClick="btn1_Click" runat="server" Style="display: none" />
    <cc1:ModalPopupExtender PopupControlID="Panel1" TargetControlID="Panel1" ID="ModalPopupExtender1"
        BehaviorID="ModalBehaviour" runat="server">
    </cc1:ModalPopupExtender>



Code Behind Code
e.Cell.Attributes.Add("onMouseOver", "javascript:ShowModalPopup();");
e.Cell.Attributes.Add("onMouseOut", "javascript:HideModalPopup();");
Posted
Updated 9-Jul-14 22:57pm
v3
Comments
Bhanu Pratap Verma 10-Jul-14 8:55am    
Your help will be highly appreciated.
Bhanu Pratap Verma 15-Jul-14 2:36am    
Can any body help me out to get the solution?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900