I am using the session object to store success/error messages based on user actions.
On each postback, the message is set on ItemCommend and retrieved on the Page_Load of the master page. Once retrieved, the message is deleted from the session.
The problem is that the master page’s Page_Load gets called before the ItemCommand gets called so the message does not show up until the next refresh or postback.
How is this situation normally handled? Is there some other event we can code against?
It is normal behavior of aspx and master pages. First of all content page’s page load get fired after that Master Page’s pageload get fired and then all other click etc.
You can use PageLoad Complete event to Solve your problem.