Click here to Skip to main content
15,896,063 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi,

How to add controller dynamically in asp.net MVC3.

Thank you,
Praveen
Posted
Comments
StianSandberg 23-Jul-12 9:12am    
mvc is not using controllers in the same way as asp.net. You should read a few basic introduction tutorials about mvc views.
Christian Graus 23-Jul-12 18:31pm    
Actually, MVC is based on controllers, ASP.NET is not.
StianSandberg 24-Jul-12 2:34am    
as I wrote "not using controllers (server-controllers as the question is about) in the same way as asp.net) Should have been more precise on that one..
Sandeep Mewara 23-Jul-12 9:53am    
Care to elaborate on what are you doing and why you need as such?

1 solution

You cannot. An MVC project is always a dll, so you can't dynamically add code, because the code is not compiled on the server.
 
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