Click here to Skip to main content
15,904,416 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, I'm using C# and and mvc3. I added a project to a solution. I would like to create a new controller and let it derive from a controller inside the project that I added. How can I do this?
Posted

Check these links out.
http://msdn.microsoft.com/en-us/library/ms173149%28v=vs.80%29.aspx[^]
C#
public class ControllerBase
{
    public ControllerBase() { }
}

public class ControllerExample : ControllerBase
{
    public ControllerExample() { }
}

http://msdn.microsoft.com/en-us/library/ms173149.aspx[^]
 
Share this answer
 
On the menu bar I went to Project > Add Reference ? Click on the Projects tab and select the project you want to reference
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900