Click here to Skip to main content
15,891,513 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
what is the best way to authenticate a user
session[] or ticket please suggest me
thanks in advance
Posted

1 solution

If you use the Membership providers system, then:
C#
if (User == null || string.IsNullOrEmpty(User.Identity.Name))
    {
    Response.Write("No User logged in<br >");
    }
else
    {
    Response.Write("User:" + User.Identity.Name);
    }
 
Share this answer
 
Comments
naren programmers 19-Sep-11 12:30pm    
could you please give me complete example
OriginalGriff 19-Sep-11 14:26pm    
Um. Which bit is missing?

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