Document.Ready() is not working after PostBack

前端 未结 8 1869
天命终不由人
天命终不由人 2020-12-02 18:39

I have a page that contains a user control within an update panel. $(document).ready(function() ) { is called and executes the code correctly when the page firs

8条回答
  •  余生分开走
    2020-12-02 19:10

    Instead of $(document).ready you could use function pageLoad(){}.

    It's automatically called by the ScriptManager on a page, even on a postback.

提交回复
热议问题