I have an asp.net label control with its Visible property value set to false. In the code, I set its visibility to true / false based on whether the user is logged in or not. The strange behavior is that during postbacks, the code code executes and sets the label visibility value for anything, and then performs markup and sets the label visibility to false. For requests without postback, the status specified by the code is not overwritten. Forgive my ignorance, but is something important missing?
source share