Click here to Skip to main content
15,914,642 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
C#
@if (Request.IsAuthenticated)
          {
              @User.Identity.Name
          @:<p style="color:red" >Welcome,@User.Identity.Name</p>
          @Html.ActionLink("خروج", "Logout") 
          }
          else{
         @Html.ActionLink("ورود", "login")   
          <br />
         @Html.ActionLink("ثبت نام", "GetUser")
          }

Request.IsAuthenticated is false and
@User.Identity.Name is =""


but i get data of login table and then login back to home peage but no get data for show User.Identity.Name why? :'(

please help me..
Posted
Comments
Mehdy Moini 15-Oct-13 15:47pm    
Amin khan, your question is not clear, what do you mean by login back?
and also with home peage?
ask your question clear with more detail :)

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