Updatepanel gives full postback instead of asyncpostback

前端 未结 2 1892
南笙
南笙 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.

提交回复
热议问题