user2190125
user2190125

Reputation: 11

jQuery is not Working in UpdatePanels in ASP.NET

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

Answers (2)

nitinvertigo
nitinvertigo

Reputation: 1180

keep your jquery function inside pageload...for example:

 <script type="text/javascript">
        function pageLoad(sender, args) {
           // your function
        }
    </script>

Upvotes: 2

Jidheesh Rajan
Jidheesh Rajan

Reputation: 4845

use the below code instead of $(document).ready(YourFunctionName);

Sys.WebForms.PageRequestManager.getInstance().add_pageLoaded(YourFunctionName)

This should work

Upvotes: 1

Related Questions