Click here to Skip to main content
15,884,425 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am working on mvc3. i want to @html.Action("","") in _ViewStart.cshtml can do this on basis of
C#
(Request.Isauthenticated)
{
@html.action("LogOff","Account")
}
else
{
@html.action("LogOn","Account")
}


i want to do above code for layout. how can i do please help
Posted
Updated 25-Aug-14 3:13am
v2
Comments
coded007 25-Aug-14 9:15am    
Have you tried it? if not, try and ask for help if it not works

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