0
I have a small menu on the Master Page:
<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Site.master.cs" Inherits="INTEGRASYS.SiteMaster" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head runat="server">
<title> ::INTEGRASYS::</title>
<link href="~/Styles/estilo.css" rel="stylesheet" type="text/css" />
<asp:ContentPlaceHolder ID="HeadContent" runat="server">
</asp:ContentPlaceHolder>
</head>
<body>
<form runat="server">
<header>
<ul>
<li class = "liultimo"><a href = "index.aspx" > ADM SYS </a></li>
<li> <a href = "administrativo.aspx" > Administrativo </a></li>
<li> <a href = "" > Executivo </a></li>
<li> <a href = "" > Comercial </a></li>
<li> <a href = "" > Técnico </a></li>
</ul>
</header>
. . .
My home page is login (login.aspx). What I want to do is leave these list items disabled (li) and enable them after the login, on the page index.aspx
The login is already working and redirects to the index.aspx.
If you are saving the user somewhere after login (Session for example), you can put a
ifin his<ul>in case theSessionuser’snull, do not display menus.– Filipe Oliveira