Weird bug when combining an ASP.NET updatepanel with the jQuery UI DatePicker

前端 未结 10 877
时光说笑
时光说笑 2021-02-04 15:42

I\'ve created a page which combines an inline jQuery UI datepicker . I wan\'t to initiate a callback to the updatepanel when the user clicks a new date to update some data. Now,

10条回答
  •  青春惊慌失措
    2021-02-04 16:19

    I think you my find this article from MSDN interesting: http://msdn.microsoft.com/en-us/magazine/cc163413.aspx

    The article says that "Sys.WebForms.PageRequestManager.getInstance().add_pageLoaded(" also attaches to Updatepanel complete events.

    It also fires each time an asynchronous callback launched on behalf of an UpdatePanel control completes and the content inside that UpdatePanel is updated.

    then in your handler you can loop through the updatedpanels with

    var panels = args.get_panelsUpdated();
    for (i=0; i < panels.length; i++) { alert(panels[i]); }
    

    I would stray away from using the _ postBackSettings because of the " _ " denotes privacy and may be discontinued in future versions of asp.net ajax.

提交回复
热议问题