Logged Uer Details using C#




string user = this.Request.ServerVariables["LOGON_USER"];

'LOGON_USER'   -Returns the Windows account that the user is logged into



To get more details, Follow this link
http://www.w3schools.com/asp/coll_servervariables.asp


Set default page in Asp.Net MVC

In the project ->  App_Start ->  RouteConfig.cs 


public static void RegisterRoutes(RouteCollection routes)
{
            routes.IgnoreRoute("{resource}.axd/{*pathInfo}");

            routes.MapRoute(
                name: "Default",
                url: "{controller}/{action}/{id}",
                   defaults: new { controller = "Home", action = "Register" id = UrlParameter.Optional }
            );
}

What is global.asax

Global.asax is an optional file which is used to handling higher level application events such as Application_Start, Application_End, Session_Start, Session_End etc. It is also popularly known as ASP.NET Application File. This file resides in the root directory of an ASP.NET-based application.