Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8546131
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T12:56:50+00:00 2026-06-11T12:56:50+00:00

Once a user is authenticated and authorized, the application can get information about the

  • 0

Once a user is authenticated and authorized, the application can get information about the user by using the User object’s Identity property. The Identity property returns an object that includes the user name and role information.

Below is the code snippet which I have used to understand the concept:-

private void Page_Load(object sender, System.EventArgs e)
{
 Label1.Text = User.Identity.IsAuthenticated.ToString();
 Label2.Text = User.Identity.Name;
 Label3.Text = User.Identity.AuthenticationType;
}

Is there any other way to get the User Identity?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T12:56:51+00:00Added an answer on June 11, 2026 at 12:56 pm

    Please clarify if you are wanting something like the following below..

    If you just want the users Identity.. from an ASP.NET WebPage when the Page_Load is called create a string[] and do something like the following

    string strRawUser = Page.User.Identity.Name;
    

    Then from there strRawUser will have something like “DomainName\UserName”
    So you need to Split the string into an stringArray and get the string[1] value like this

    string[] strRawUserSplitter = Page.User.Identity.Name.Split("\\");
    Label2.Text = strRawUserSplitter[1]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Once the user is authenticated, I fetch the User information from the Database and
In my application, once the user is authenticated, he receives a sort of security
Once the user is authenticated, I serialized the class object and stored it in
I have a PHP application where I set $_SESSION['user']=logged once a user is authenticated.
I have a php application where the user is authenticated using facebook php library
After getting user authenticated with oauth2, i got the token. so how that get
Once a user is authenticated I have an Object userID. Where is the best
I had a login page. once user successfuly logged in, they can view and
Once a user has selected a file with the open file dialog, how can
How can I edit this to run only once after user scroll up: (function

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.