There are many blog posts on how to get MVC to work with ASP.NET web applications. However, there are still scenarios in which we use regular ASP.NET website projects, rather than web application projects.
Below are the steps to enable MVC 3 with the asp.net website project
1. Install ASP.NET MVC 3
2. Modify web.config
Open web.config in Visual Studio and add the following lines inside the section

3. Modify global.asax
Next, you will need to add code for MVC triggers inside global.asax (create one if it does not exist)
Add the following lines after <% @ Application Language = "C #"%>

Add the following after

add the following inside application_start

At this point, your global.asax should look like

4. Creating a controller
Since this is a website project, compilation is performed at run time, so you will have to create your controllers inside the App_Code folder, and not in the regular Controller folder on the main site
Note that your controller class must end with the keyword Controller. In the example with the controller = "Home", the class name for the controller should be HomeController
To add your first controller, right-click on the App_Code folder and create a new class with a file name like HomeController.cs
Paste the following code into HomeController.cs (replace all)

5. Check the site
Now that you have created the routing and created the controller, go to localhost / home. You should see "Hello World"
The above content is taken from here . Failed to add the link directly, because the link may be broken.
Hope this helps you