Click here to Skip to main content
12,889,437 members (49,489 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
Updated 27-Dec-12 4:14am

1 solution

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

Solution 1

  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
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
Web01 | 2.8.170424.1 | Last Updated 27 Dec 2012
Copyright © CodeProject, 1999-2017
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