Click here to Skip to main content
15,917,565 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
ASP.NET
<div class="clear hideSkiplink">
               <asp:Menu ID="NavigationMenu" runat="server" CssClass="menu" EnableViewState="false" IncludeStyleBlock="false" Orientation="Horizontal">
                   <Items>
                       <asp:MenuItem NavigateUrl="~/home.aspx" Text="Home"/>
                       <asp:MenuItem NavigateUrl="~/profileform.aspx" Text="Profile"/>
                       <asp:MenuItem NavigateUrl="~/signupform.aspx" Text="Sign Up"/>
                       <asp:MenuItem NavigateUrl="~/changepasswordform.aspx" Text="Change Password"/>
                       <asp:MenuItem NavigateUrl="~/Holidays.aspx" Text="List of Holidays"/>
                       <asp:MenuItem NavigateUrl="Leaves.aspx" Text="Attendance"/>
                       <asp:MenuItem NavigateUrl="~/SalarySlip.aspx" Text="Salary Slip"/>
                       <asp:MenuItem NavigateUrl="~/signinform.aspx" Text="Loan Detail"/>
                   </Items>
               </asp:Menu>
               </div>





plz help
Posted

1. use 2 different pages before log in & after log in. After successful log in redirect to page having assigned redirection links & if log in is unsuccessful then keep user on page having menu with blank redirection

2. Check log in session on every page, in page load event(It can be done in master page also) & if not found then redirect it to log in again.
 
Share this answer
 
Use session variable to check if the user has logged in or not and depending on that enable or disable the menu.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900