I have a custom web control that has several events that bubble up from internal controls such as LinkButtons. When I use my control within a page and click one of these LinkButtons a postback takes place but the code inside that is supposed to execute OnLogout_Click does not fire:
However if I refresh the page (F5) then the code is actioned. It is as if the page is rendering before the event is fired - which it probably is - how can I make sure it is fired first? BTW if it helps my control is built within CreateChildControls() rather than Render().Code:void Logout_Click( object s, EventArgs e ) { Session.Abandon(); FormsAuthentication.SignOut(); }
DJ




Reply With Quote