Document.Ready() is not working after PostBack

前端 未结 8 1852
天命终不由人
天命终不由人 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 18:56

    Most of the times, this is happening because of the Updatepanle. Just put postback triggers to the button and it will solve this.

提交回复
热议问题