Sign out button reloads all user controls
Posted
by eych
on Stack Overflow
See other posts from Stack Overflow
or by eych
Published on 2010-04-16T15:34:39Z
Indexed on
2010/04/16
15:43 UTC
Read the original article
Hit count: 288
I have an aspx page with several user controls (ascx) as well as an asp:button for signing out.
The click event of the button clears the session and does a response.redirect to the login page.
However, before the click event is called, since the page posts back, all of the Page_Load events run for all of the controls.
What is the best way to have the click event code run without unnecessary reloading of all user controls?
© Stack Overflow or respective owner