Skip to main content

Posts

Showing posts from March, 2013

how to use jquery in asp.net updatepanel

<script type="text/javascript">     function BindControlEvents() {         //jQuery is wrapped in BindEvents function so it can be re-bound after each callback.         //Your code would replace the following line:             $('#<%= TextProtocolDrugInstructions.ClientID %>').limit('100', '#charsLeft_Instructions');               }     //Initial bind     $(document).ready(function () {         BindControlEvents();     });     //Re-bind for callbacks     var prm = Sys.WebForms.PageRequestManager.getInstance();     prm.add_endRequest(function() {         BindControlEvents();     }); </script>