authentication and authorization in asp.net csharp with example

Code Example - authentication and authorization in asp.net csharp with example

                
                        Response.Write(User.Identity.Name +"<br>");
Response.Write(User.Identity.AuthenticationType + "<br>");
Response.Write(User.Identity.IsAuthenticated + "<br>");
Response.Write(User.IsInRole("Administrators") + "<br>");