Hello everybody,
In my Index page I have two events: Page_Load and Page_LoadComplete. In Page_LoadComplete I use a session variable for showing an image and the Page_Load event is overrided by the homonym in the BasePage.
I use the BasePage to check if the session is expired and, if it is, clean it up a little bit and redirect to login page. The issue is Page_LoadComplete is been fired before Page_Load so if the session is expired I get an error.
I have not been able of reproduce the error, I know it happens because of the log registered in the error page. But it has no sense because the BasePage's Page_Load should be fired first.
This is the coge in BasePage and the Index
BasePage:
namespace Web
{
public< ...
Go to the complete details ...