Updatepanel gives full postback instead of asyncpostback

前端 未结 2 1871
南笙
南笙 2021-01-12 04:03

I have run into what seems to be a very famous problem: My updatepanel fires a full postback instead of a async postback. The normal solution is to give all controls you add

相关标签:
2条回答
  • 2021-01-12 04:36

    From the AsyncPostBackTrigger documentation:

    Programmatically adding AsyncPostBackTrigger controls is not supported. To programmatically register a postback control, use the RegisterAsyncPostBackControl method of the ScriptManager control. Then call the Update method of the UpdatePanel control when the control posts back.

    0 讨论(0)
  • 2021-01-12 04:46

    I had the same experience when populating a CheckBoxList inside a ListView inside a Panel in an UpdatePanel. It was solved by adding this code in the CheckBoxList:

    ClientIDMode="AutoID" 
    
    0 讨论(0)
提交回复
热议问题