routing - MVC - Creating new Views without adding Actions to Controller -


I am working on a mini CMS-like application using asp.net MVC 1.0 (I will renew it 2.0 is ongoing). Once I want to have a feature, it is very important for CMS, an administrator has the ability to add pages to your site.

Essentially, if the administrator wants to add a page called "Link", then I want him to be able to do this without implementing the controller and without compromising the new assembly.

I have an idea for a solution and I want to know that the community thinks.

I think I should write a class (for the argument it is called User Generated Generic Controller) which extends to the Controller Class. In this class, I will have a single action which reads a parameter and redirects in View which corresponds to the passed parameter in the action.

I also need to edit the routing in global .asax.cs file

Therefore / user generated generic controller / link Hit the same action which would be / user generated generic controller / news , but display the desired views.

What do you say? I am interested in your comments on this approach and your suggestions in other ways.

I think what you have to offer is


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

jquery - SimpleModal Confirm fails to submit form -