I'm trying to find an answer for a problem my developers are having. I don't know this well enough myself...
We are using ASP.NET with C#.
When a user presses a button on a page, we call a hander to save the session variables to the current view state of the form (some IDs that are used).
Then, we call a GreyBox window with other functionality.
Because this is asynchronous, greybox doesn't wait for the handler to respond.
In many cases the greybox is loaded before the session variables are saved to the view state, and in this case, grey box doesn't have the IDs that are necessary.
On the localhost, it is fast enough that we never realized the problem. In production, it is a problem.
What would be the correct solution here?