Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Application Administration form
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 3.0
OS:
Vista
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01519495
Message ID:
01519853
Vues:
36
Shawn,

>The Application Administration form (Admin/default.aspx) displays Anonymous User after I log in using MM security.
>
>I have set the RequiresSecurity to true and I am asked to login. After I successfully log in the Logged on User still shows Anonymous User.
>
>This is the code in the default.aspx file that should show me logged in.
>
>
> < %= User.Identity.Name == "" ? "Anonymous User" : User.Identity.Name %>
>
>
>I have checked User.Identity.Name after I log in and it is an empty string.
>
>All of the fields in the Users table for my log in are populated with data.
>
>Anyone know why User.Identity.Name is not being populated?

If your users have Windows accounts and you are using Windows authentication, then the value is automatically populated (try this on your development machine and you should see it populated with your user id). Check out the MM .NET Dev Guide section "Authentication in ASP.NET Applications" fo details.

Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform