Click here to Skip to main content
12,360,037 members (58,006 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: ASP.NET MVC4
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 27-Dec-12 4:13am
loylmed374
Updated 27-Dec-12 4:14am
v2

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

@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
  Permalink  
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160621.1 | Last Updated 27 Dec 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100