maika paika

maika paika

  • NA
  • 27
  • 5.5k

Clicking on button does not take effect after first click, but only after second click

Jul 16 2011 9:33 AM
HI!
It is third day I have been struggling with buttons, which at first click send data to database, but only after second click this data displays on the webpage.

I have been searching for solution from internet, but without result.

I am using AJAX UpdatePanels now. Update panels are able to update and instantly display changed data, which is not coming from database, after first click on button.
On my update panel I add TextBoxes and Buttons dynamically, as well as ID-s and events and other relevant stuff. Clicking on button sends data stored in TextBoxes to the database and I want these changes to display in webpage instantly. But it happens only after second click.

Is here anyone who knows why Asp.Net is acting this way?

Answers (3)