Click here to Skip to main content
Sign Up to vote bad
good
See more: ASP.NETMVC4
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:13
loylmed364
Edited 27 Dec '12 - 4:14


1 solution

@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:21
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
Your Filters
Interested
Ignored
     
0 OriginalGriff 360
1 Sergey Alexandrovich Kryukov 173
2 Abhinav S 168
3 Guirec Le Bars 120
4 Mahesh Bailwal 115
0 Sergey Alexandrovich Kryukov 8,439
1 OriginalGriff 6,681
2 CPallini 3,553
3 Rohan Leuva 2,793
4 Maciej Los 2,234


Advertise | Privacy | Mobile
Web04 | 2.6.130516.1 | Last Updated 27 Dec 2012
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid