I am using the AJAX Toolkit's Accordion control in a project.
In the first pane, I have an UpdatePanel. Within that UpdatePanel is an HTML table with several TextBox Controls that receive data from a database via a class, "Profile," I have created. The table also has a Button control which, when clicked, should update the database with the values in the TextBoxes, via the Profile class.
In the page's page_load event, I successfully target and set the values of the TextBoxes from the custom class, "Profile".
The trouble occurs when I attempt to update the database with the Button's Click event handler. Within this event handler, I set the Profile class' properties with the values from the TextBoxes. Strangely, the TextBox.Text properties for all of the TextBoxes return exactly the same text that was set during the Page_Load event -- NO CHANGES TO THE TEXT WITHIN THE TEXTBOXES ARE REFLECTED WHEN THE BUTTON IS CLICKED.
This is not a database issue. I have used the debugger to step through my code and the TextBox.Text property for each of the TextBoxes has been checked. It is the same text as originally set in the TextBoxes during the Page_Load event, and not the actual text present when the button is clicked.
Experts, any ideas as to what I'm doing incorrectly?