Wednesday, 14 February 2018

Call button on hit enter key in a text box

<script type="text/javascript">
    function ApplyFilterOnEnterKey(e) {
        if (e.keyCode == 13) {
            document.getElementById("_ctl0:mainContent:Search").click();
            return false;
        }
    }
</script>


Add the following attribute to the textbox:
onkeypress="return ApplyFilterOnEnterKey(event)"


No comments:

Analysis Service in Power BI Report Server

 We couldn’t connect to the Analysis Services server. Make sure you’ve entered the connection string correctly... link