check if user is logged in in user control Asp.net MVC

前端 未结 4 829
情话喂你
情话喂你 2020-12-29 19:35

how can i check if a user is logged in in user control with asp.net mvc

usually on a view page i use this

<% if (User.Identity.IsAuthenticated)          


        
4条回答
提交回复
热议问题