<script type="text/javascript"> var to; // variable to which we assign setTimeout function var prm = Sys.WebForms.PageRequestManager.getInstance(); // Page Request Manager object function onTxtKeyUp(e, buttonid) { if (e.KeyCode != 9) to = setTimeout(function () { performSearch(buttonid); }, 300) } function onTxtKeyDown() { if (to) clearTimeout(to); } function performSearch(buttonid) { if (prm.get_isInAsyncPostBack) { prm.abortPostBack(); } // $get("<%=lblStatus.ClientID %>").innerHTML = "Loading..."; __doPostBack(buttonid, ""); // __doPostBack("<%=btnSearch.UniqueID %>", ""); } </script>
<script type="text/javascript"> function clickButton(e, buttonid) { debugger; var evt = e ? e : window.event; var bt = document.getElementById(buttonid); if (bt) { bt.click(); } } </script>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)