How can you tell if a method is being run in UpdatePanel postback?

前端 未结 1 650
梦毁少年i
梦毁少年i 2020-12-28 08:06

How can I tell if a method is running in the context of an AJAX postback (i.e as the result of a UpdatePanel (asynchronous) postback)?

According to egoldin Page.IsAs

1条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-28 08:54

    Use ScriptManager.GetCurrent ( Page ).IsInAsyncPostBack

    0 讨论(0)
提交回复
热议问题