Reputation: 11
I am using asp .net update panel. I got a good reference from jQuery $(document).ready and UpdatePanels?
But in my case i am using a bunch of jquery right from validation to select search and many more. Can any one suggest me some way so that i can reload those query without writing them again for asynchronous post-backs.
Upvotes: 1
Views: 4532
Reputation: 1180
keep your jquery function inside pageload...for example:
<script type="text/javascript">
function pageLoad(sender, args) {
// your function
}
</script>
Upvotes: 2
Reputation: 4845
use the below code instead of $(document).ready(YourFunctionName);
Sys.WebForms.PageRequestManager.getInstance().add_pageLoaded(YourFunctionName)
This should work
Upvotes: 1