I'm having a problem, I need to hide a menu on the login screen when it loads. I used a solution that works locally, but the server does not happen, it follows:
//MENU QUE FICA NA MASTER PAGE
<asp:Panel ID="Panel1" runat="server">
<asp:LoginView runat="server" ViewStateMode="Disabled">
<AnonymousTemplate>
//CONTEUDO DO MENU
</AnonymousTemplate>
</asp:LoginView>
</asp:Panel>
//ISSO ESTÁ NO PAGE_LOAD DA TELA DE LOGIN
Panel ocultaMenu = (Panel)Master.FindControl("Panel1");
ocultaMenu.Visible = false;