-1

Hey guys so I've been looking online and i just cant figure this out..

I've used the Visual studio base Web app essentially as a skeleton to start my web app and i have this in "Site.Master" which i think is the class holding everything about the Navigation page:

   "<li><a runat="server" id= "liLogin" href="~/Account/Login">Log in</a>
   </li>"

I want to change this name "Log in" To Logged in as a result of an if statement

But: i don't know how to call it...

thanks!

1 Answers1

1
   <li><a runat="server" id= "liLogin" href="~/Account/Login">
 @if(User.IsAuthenticated)
{
   <text>Logged In</text>
}
else
{
<text>Log In</text>
}
</a>
   </li>
Yazan.Ati
  • 31
  • 1