Determine which UpdatePanel causes the partial (asynchronous) PostBack?

前端 未结 6 1285
花落未央
花落未央 2020-12-05 19:55

In a page contains two UpdatePanels, How can I know which UpdatePanel causes the partial PostBack ?

I mean in the Page_L

6条回答
  •  [愿得一人]
    2020-12-05 20:49

    If the asyncpostbackelementid is set then you could check that updatepanel's uniqueid starts with that id, meaning that is inside it since updatepanels are inaming containers.

提交回复
热议问题