Where in User.Identity.Name gets a value in Login control?

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hello,

For a logging application I need to test the value of User.Identity.Name together with User.Identity.IsAuthenticated to direct the program flow. I tried Login.Authenticated, LoggedIn and Page_Load events. In all cases the value is returned as empty. Based on whether this value equal to "admin" I would like to make a CreateUserWizard control visible if the user is authenticated. I would appreciate if you give me a code example. Thank you.

Athena

.