Click here to Skip to main content
13,092,725 members (69,290 online)
Rate this:
Please Sign up or sign in to vote.
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
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 IS THE expression

<% if(Request.IsAuthentificated)
<%: Html.ActionLink ("test", "test", "Home")%> .
Posted 27-Dec-12 21:28pm
Updated 27-Dec-12 21:29pm
Oleksandr Kulchytskyi 28-Dec-12 3:41am
Please , elaborate your question!!! Describe in more details about your specific issue
Vani Kulkarni 28-Dec-12 3:54am
Your question is unclear. Please elaborate.
loylmed 28-Dec-12 7:59am
in the menu i have 4 tabs ans i have 2 users
evry one has her property role,after authentification i want that another tabs appear but we have a difference between users because evry one has her preporty tabs so i want that for example "about" appear when user1 is authentificate and "details" appear only whene user2 is authentificate
ArpitDubey 28-Dec-12 15:46pm
Which menu u are using web control asp:menu or jquery / mootools based html menu.

Please elaborate.

1 solution

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

Solution 2

I'm not sure of the MVC4.0 syntax but You could test for the roles as well as to see if the user is logged in....the psuedo code for it would be something along the lines of...

If request.auntheticated
  If userrole is admin
    show admin menu
    show member menu
  end if
  show default public menu
end if

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 |
Web03 | 2.8.170813.1 | Last Updated 28 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