Click here to Skip to main content
15,064,915 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I do not want any tabs on the menu apparessent that after authentication?
WHAT should MUST I do please??
i want to test it whith the login and password

THIS IS THE expression

<% if(Request.IsAuthentificated)
{%>
<%: Html.ActionLink ("test", "test", "Home")%>
Posted
Updated 27-Dec-12 4:14am
v2

1 solution

C#
@if(!Request.IsAuthentificated)
{
  Html.ActionLink ("test", "test", "Home")
  Html.ActionLink ("test2", "test2", "Home2")
}


this mean that after you doing Authentication, you won't be able to view this links
   
Comments
loylmed 27-Dec-12 10:21am
   
yes but in fact I have two users, suddenly everyone has these specific tab
so I want to test if user1 is authentificate ......
and same for the second
!!!!!!!!!!!!!!!!

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