Reputation: 63935
Ok so we all of course know of the big two frameworks built atop ASP.Net. Webforms and MVC. Are there any alternatives to these two big and Microsoft-made frameworks?
I believe that OpenRasta had something extremely lightweight which was independent from both, but I'm not sure. Is there anything else like that though?
The reason I ask this is that I've pondered on trying to create a framework independent from both Webforms and MVC and I would like to see how other people approached the problem.
Upvotes: 2
Views: 1320
Reputation: 63935
I've developed a small MVC framework a while back when MVC didn't quite work right on Mono(or at least wasn't stable)
It's called BarelyMVC and is BSD licensed at bitbucket.
Well, basically BarelyMVC, though can be used in probably all projects, may not be the best tool. But, in general it has these features going for it:
So, to sum that up. Even though I call it MVC, it really is more like VC, view and controller. Views of course exist and are very lightweight. Controllers are basically the HttpHandler
class. There is no real "need" for models though. Abstracting things by models is very easily done with BarelyMVC, but they are really optional. There is no assumption that underneath each HttpHandler is a data model. While this can lead to messier code, I've seen some pretty bad code that happens when people try to work around enforced MVC architecture. Work arounds will happen no matter what, so I just make it so my framework is extremely easy to work around. I give you enough power to shoot your foot, but I also make sure you know very clearly that you are about to.
It's composed of three main components:
ViewData["typo"]
errors. And of course, each of these 3 components are also completely optional.
I made my own blog in BarelyMVC and I think it turned out as a very nice example of how cool BarelyMVC is. It's source code is also at bitbucket
Upvotes: 0
Reputation: 9799
I've developed an alternative to ASP.NET MVC. You get the same loose coupling and separation of concerns but the difference is in how you go about building your projects.
I have a couple of videos on my blog, source code for the framework, a sample project and a few VS.NET add-ins (New Project item, New Builder and New View).
Some key differentiating Features are 1. Templates are just html - no code mixed with templates 2. Templates are thus reusable across views and Web site designers can design templates in their design tool of choice 3. Strongly typed code (no ViewData and stuff) so you get intillisense, compile time checking, F12 navigation etc. 4. You build pages as compositions of views rather than an inside-out approach 5. View can be treated as "real" classes. 6. Everything is complied so no run-time compilation
Quite a few other differentiating factors as well.
My Website/blog is also built using Quartz for ASP.NET Matlus - Internet Technology & Software Engineering
Upvotes: 1
Reputation: 6766
Indeed OpenRasta is the only of the proposed answers that can run out of asp.net quite happily, and still run on top of it if you so desire. And it is stable enough that few patches are required to the 2.0 branch before work starts on 3.0 this month.
Upvotes: 1
Reputation: 1019
check out Web Forms MVP ( http://webformsmvp.com/ )
It is an MVP framework form ASP.Net WebForms.
Upvotes: 1
Reputation: 96626
There is Mono Rail, an alternative MVC framework.
And the new microsoft product/project WebMatrix seems to be based on a completely different approach (although I don't know it in detail).
Upvotes: 3
Reputation: 1821
FubuMVC is another popular (and active) alternative http://fubumvc.com/
Upvotes: 3