views:

350

answers:

8

Lately, I've been thinking that I'd like to try some new ideas and a new approach to web application design. I'm mostly used to using ASP.NET (.NET 2.0) but I've toyed with the ASP.NET MVC library a little bit as well. While both are powerful and interesting, I'd really like something more... basic.

Is there anything like that out there? I'd like a framework that's more transparent really: I want to be able to see the request, pass it where I want, render HTML the way I want, and post requests how I want. I can get all that in ASP.NET, but I have to dig pretty hard to get at all of it. I'd like something simpler to use as the basis for some new framework ideas.

So is there something like that out there? Or would I pretty much have to completely reinvent all the basic routing, request, and response code as well to get a platform to build up from?

+3  A: 

You should look at Fubu MVC then - http://fubumvc.com/

Andriy Shvay
A: 

There is the ASP.net Model View Presenter which may be something like what you are looking for.

http://www.codeproject.com/KB/architecture/ModelViewPresenter.aspx

aceinthehole
+1  A: 

I think you want the WebMatrix.

It's basicly a very simple (ASP like) model, but then coded with C# / .Net, and you get the @Razor syntax.

GvS
+3  A: 

I would say if you are set on C# as your language ASP.net MVC is as good as it gets right now. You may want to experiment with other template engines like Spark or Nhamle.

Matthew Vines
Or the upcoming Razor engine coming with MVC 3.
Matthew Abbott
+16  A: 

I'm not sure if it fits your requirements, but you could definitely check out Manos (via Manos de Mono: The Manifesto)

Justin Niessner
Currently trying to get it working under Windows. Anyone have a build recipe for libev for windows (the main stumbling block right now)?
Arne Claassen
@Arne - I haven't tried building on Windows yet. I'm downloading everything now.
Justin Niessner
I know the node.js guys are putting more effort into windows support. So between them or us, I'm sure libev will be easier to get on windows soon.
Jacksonh
Not sure if it's exactly what I need, but this is a really freaking cool project just the same. Reminds of some Python frameworks I've toyed with like Pylons: light, modular, self-contained. Very nice. Not looking forward to trying to make it go on Windows though.
CodexArcanum
Manos supports Spark View Engine now.
FlappySocks
+11  A: 

It's not answering the question but I really strongly think you're making a mistake here.

MVC lets you deal with rendering in the way you want (it's not like the bad old webforms), HttpHandlers let you deal with Requests and Responses as low down as makes reasonable sense (to me). 99 times out of 100 you don't want to have to deal with the raw raw data coming from the web server (and what is raw anyway? "Request" is an abstraction itself...).

I think you have to look long and hard at your motivation and consider the practical costs if you could get there.

annakata
You're absolutely right actually, and maybe I'm not expressing myself well but I left the question a bit open to facilitate more answers. My main goal is, speaking in ASP.NET terms, to strip off everything from the Page and up. So I guess I'm mostly interested in a platform that allows me more control over rendering, so maybe MVC is exactly what I need and I just need to look at it freshly with my current goals in mind.
CodexArcanum
+1 The MVC framework is clear-cut and flexible and it gives the developer a lot to work with. Ignoring the simplicity and power of the MVC framework would, in my opinion, be a mistake. Don't fight the framework! Use it to your advantage!
Anthony
@CodexArcanum - it *sounds* like you're coming from a webforms background and I can sympathise with that position (WF is unequivocally a disaster). You should take a look at HttpHandlers and MVC (in that order) for a happier life.
annakata
Link added for great justice.
annakata
Oh yes, I work with Webforms every...day... I'm a bit stuck with .NET 2.0 at work, which is one reason I'm hesitant to use MVC since I'd need at least 3.5 to actually use it. I think messing with the Handlers will put me much closer to what I want though. Excellent advice!
CodexArcanum
Downvoter care to explain?
annakata
+1  A: 

I would go and implement an HTTP handler using ASHX files. It gives all the power of ASP.NET object model but do not limit you on any special way of handling the request.

Aliostad
First HTTP Handler suggestion and actually a very good notion of where I need to cut in at to get what I wanted.
CodexArcanum
A: 

It sounds to me like you're looking for a microframework like Sinatra , but in c# instead of Ruby. I am not aware of any such framework.

I recommend you dive into Sinatra itself. Learning Ruby will help expand you as a developer, you'll be closer to the HTTP metal (which sounds like what you want), and it'll be fun. The minimalism and simplicity that it sounds like you're looking for is much more popular in the Ruby community.

Gabe Moothart