This is a discussion on ASP.NET 3.5 Interview Tips and Tricks within the ASP and ASP.NET Programming forums, part of the Web Development category; list of stages of execution for an MVC Web project: Initial request In the Global.asax file, routes are added ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| list of stages of execution for an MVC Web project: Initial request In the Global.asax file, routes are added to the RouteTable object. Routing The UrlRoutingModule module creates the RouteData object from the matched Route object in the RouteTable instance. Route data is used to determine which controller to request, and which action to invoke. Map to controller The MvcRouteHandler handler attempts to create the type name for the controller, based on data in the RouteData instance. Invoke controller builder The handler calls the global static CreateController method of the ControllerBuilder class, obtaining an IController instance. If an IController instance is not returned, the handler returns an HTTP 500 error that indicates a server error. Create controller The ControllerBuilder instance creates a new controller directly, or uses an IControllerFactory object to create the controller. Execute controller The MvcHandler instance is added to the ControllerContext object and calls the controller's Execute method. |
| Sponsored Links |
| |||
| How to Create an ASP.NET MVC Application The ASP.NET MVC framework includes Visual Studio project templates that let you create Web applications that are structured to support the MVC pattern. The MVC project templates include: * ASP.NET MVC Web Application template * ASP.NET MVC Web Application and Test template These templates are used to create a new Web application that is configured with the folders, templates, and configuration-file entries that are required for an ASP.NET MVC application. By default, when you create a new Web application by using the ASP.NET MVC Web Application and Test template, Visual Studio creates a solution and adds two projects to the solution. The first project is a Web project where you can implement your application. The second project is a testing project that you can write unit tests for your MVC components. |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| C# .Net Tips & Tricks | oxygen | C# Programming | 84 | 12-02-2008 02:12 AM |
| Windows Forms Application Interview Tips and Tricks | santhakumar | Interview Questions & Answers and Tips | 497 | 06-03-2008 08:50 PM |
| ASP.NET 2.0 Interview Tips and Tricks | santhakumar | Interview Questions & Answers and Tips | 339 | 03-20-2008 06:09 AM |
| Interview Tips & Tricks | venkatesan.N | Interview Questions & Answers and Tips | 2 | 08-28-2007 04:37 AM |
| .NET tricks & Tips | Karpagarajan | VB.NET Programming | 1 | 04-23-2007 09:17 AM |