How do I know if a control has been callbacked?

I have an ASPX page and on this page I have a control that contains AJAX UpdatePanel

. When the control makes a callback, the ASPX page event is fired Page_Load

, but the property Page.IsCallBack

is false.

How do I find out on the page an Page_Load

event if there was a callback?


source to share

1 answer

I used the following code to check if triggered Page_Load

by an AJAX request:

if (!string.IsNullOrEmpty(Request.Headers["X-MicrosoftAjax"]))




All Articles