I've been playing with webmatrix for a while and loving it. I am going to create a new application and wondeering if I can use a structure that has a central controller page shared by multiple views. For example, all the form processing of the views will
be handled by that central controller. All the codes needed (data access, logic) to process the view will be in the controller. Is it advisable to use this kind of flow? I know MVC will be such a good fit for this but I want to do it in webmatrix. Thank you!
You are describing MVC. Microsoft have already provided a framework for that. If you did it using Web Pages you would end up with something that looks like the existing MVC framework. Seems a bit pointless to me.
fart-y-goer
Member
5 Points
8 Posts
Need some advice for my application structure
Mar 10, 2012 03:36 PM|LINK
I've been playing with webmatrix for a while and loving it. I am going to create a new application and wondeering if I can use a structure that has a central controller page shared by multiple views. For example, all the form processing of the views will be handled by that central controller. All the codes needed (data access, logic) to process the view will be in the controller. Is it advisable to use this kind of flow? I know MVC will be such a good fit for this but I want to do it in webmatrix. Thank you!
Mikesdotnett...
All-Star
154852 Points
19855 Posts
Moderator
MVP
Re: Need some advice for my application structure
Mar 10, 2012 05:36 PM|LINK
You are describing MVC. Microsoft have already provided a framework for that. If you did it using Web Pages you would end up with something that looks like the existing MVC framework. Seems a bit pointless to me.
Beginning ASP.NET Web Pages with WebMatrix | My Site | Twitter