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 Answer 1

2

in the page load check

  if (!Page.IsAsync)
  { 
  }
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.