Thursday, March 3, 2016
FamilyTree Application Using asp.net (MVC5)
Easiest way to design a simple application to learn - MVC5
Step:1
The execution goes to the global.asax page, invokes all the class files in the app_start folders where all the files are static.
Step:2
The route.config file gets invoked and the path is decided, the default name of each routes defined should be different.
routes.MapRoute(
name: "Default1",
url: "{controller}/{action}/{id}",
defaults: new { controller = "Authenticate", action = "SignIn", id = UrlParameter.Optional }
);
routes.MapRoute(
name: "Default",
url: "{controller}/{action}/{id}",
defaults: new { controller = "Family", action = "Index", id = UrlParameter.Optional }
).DataTokens = new RouteValueDictionary(new { area = "FamilyTree" });
The first route invokes the signIn action specified in the Authentication controller.
The second route specifies the Index action in Family controller where the controller is present inside the area.
Step:3 (Performing SignIn Authenticate the User custom)
Step:1
The execution goes to the global.asax page, invokes all the class files in the app_start folders where all the files are static.
Step:2
The route.config file gets invoked and the path is decided, the default name of each routes defined should be different.
routes.MapRoute(
name: "Default1",
url: "{controller}/{action}/{id}",
defaults: new { controller = "Authenticate", action = "SignIn", id = UrlParameter.Optional }
);
routes.MapRoute(
name: "Default",
url: "{controller}/{action}/{id}",
defaults: new { controller = "Family", action = "Index", id = UrlParameter.Optional }
).DataTokens = new RouteValueDictionary(new { area = "FamilyTree" });
The first route invokes the signIn action specified in the Authentication controller.
The second route specifies the Index action in Family controller where the controller is present inside the area.
Step:3 (Performing SignIn Authenticate the User custom)
Subscribe to:
Posts (Atom)