I'm having the weirdest problem.
I have two PlaceHolders in a Master Page; one contains controls for users who are logged-out, and the other for users who are logged-in.
They are:
plhLoggedOut
plhLoggedIn
During my Page_Load (of the Master Page), I set their visibility like so:
//LOGGED-IN?
plhLoggedOut.Visible = (app.UserID == 0);
plhLoggedIn.Visible = (app.UserID != 0);
However, the contents of BOTH PlaceHolders are still being rendered.
I'm even writing their visibility to a status message, and that status message confirms that only one is visible at any given time. e.g.,
plhLoggedOut.Visible == True; plhLoggedIn.Visible == False
Any ideas how this could happen (and how to fix it)?
Thanks very much,
Michael