Click here to Skip to main content
15,887,135 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
and used this usercontrol whereever i required this and it is opened by clicking on button but Whenever i press enter key on my page in textbox this user control automatically opens .how to display none on any of the user control I have also written javascript to handle this but it doesnot work


XML
<script type="text/javascript">
    $(document).keydown(function (event) {
        if (event.keyCode == 13) {
            document.getElementById("<%=tvFilterLocation.ClientID %>").style.Display = "none";
            // return false;
        }

    });
Posted
Comments
ZurdoDev 24-Jul-14 7:41am    
What exactly is the problem?
Neha Mukesh 25-Jul-14 0:31am    
pop up raises everytime when enter key is pressed...how to disable or unset focus from that popup?
Dr. Curtis Shull 25-Jul-14 8:20am    
Are you certain that the correct tvFilterLocation.ClientID is being rendered? Have you checked it live in the bowser against your tvFilterLocation object

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