check if user is logged in in user control Asp.net MVC
Does this work?
<%= Page.User.Identity.IsAuthenticated %>
Nothing new to add to Griegs answer, but I would normally do
@Request.IsAuthenticated
You could decorate the Method with the Authorize attribute. This requires that the User calling the Method being authenticated.