Multiple choice technology web technology

In ASP.NET in form page the object which contains the user name is?

  1. Page.User.Identity

  2. Page.User.IsInRole

  3. Page.User.Name

  4. None of the Above

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

In ASP.NET, the Page.User.Identity object contains the authentication information for the current user, including their name. The User property exposes an IPrincipal interface, and its Identity property holds the IIdentity object with details like Name and IsAuthenticated. IsInRole is a method for checking role membership, not a container for user name.