Modules - sachatrauwaen/Dnn.Platform GitHub Wiki
The idea is to migrate step by step to MVC.
So in the the first step some part will run in MVC and other parts in WebForms.
To have a working site we need actually to have all modules supporting MVC ans WebForms.
Actually to add MVC support to a existing WebForms module we need to add a Mvc Controller and Razor files (.cshtml).
The razor files need to be created inside a Views subfolder of the module.
Each module control need :
- a controller with name equal to the module name and action equal to Control source filename (without folder and without extension).
The controller action is executed as a Child Action (from a Html.Action helper with MonduleInfo as parameter)
- [optional] a class equal to Control source filename + 'Control' in the same namespace and assembly as the business controller class.
The pushase of this class is implementing optionally control interfaces like IActionable
- For implementing forms you can use MVC post actions on the controller witch are called as ajax calls.
The easy way to do it is by using the jquery forms plugin. jquery forms plugin