views:

28

answers:

1

I'm working with an AJAX button and label controls. When the user clicks the button, the data is updated in the label.

But after clicking the button, the Page_Load event occurs, and I don't want it, because all data is being initialized to default values.

How can I check in Page_Load event that it's an AJAX request?

I'm using UpdatePanel and ScriptManager as AJAX tools.

+1  A: 

in the page load check

  if (!Page.IsAsync)
  { 
  }
Pharabus