I have a web form with a few group boxes and a button. When the button is clicked it calls an event handler which then updates the status of the database record. What is supposed to happen is that now the status of the record is updated it will show and hide the group boxes depending on that status of the record. The problem is the order of things in ASP.NET as page load is run then the click handler. I'm finding when you click the button the page load event is frist called which then gets the original record from the database and is then not changing as it thinks the record is stil the same. After the load has run it then runs the click handler and updates the database. It would be easier if the click handler happened before the load event. Is there anyway to get around this problem?
The ideas for solutions I've come up with are:-
- After click handler is run refresh the page
Thanks For the help, Richard