Call a Javascript Function after UpdatePanel Postback Issue

I basically have in my UpdatePanel a literal that generates a javascript array based on a method in my codebehind.

I don't have an issue when it comes to loading my content on page load. But if I try and carry out a search to update my javascript array literal within my updatepanel, I found that the literal gets updated on postback after the javascript has already fired.

Here is a basic example of what I have:




  

     
        
    

I've been looking at the following posts:

ASP.NET - UpdatePanel and JavaScript

call javascript after updatepanel postback

But I can't seem to apply it correctly to my code.

It works fine when I don't use an UpdatePanel. But it is a requirement so that the page position does not move when searches are carried out.

16
задан Community 23 May 2017 в 12:10
поделиться