views:

531

answers:

5

I want to start building more testable web apps, unfortunately I am not able to go with Microsofts MVC framework just yet. So I am looking advice. What UI pattern do you guys use with asp.net apps, and how do you implement them?

I do understand patterns like MVP, MVC, etc., but I don't have any experience implementing them, so any input is much appreciated.

Best regards, Egil.

+2  A: 

I´m still using "old fashioned" web forms, but I try to keep as much logic as possible away from the code behind files, and instead have business/domain logic in a separate layer, and a facade class between that and the presentation layer (remote facade if it´s a service).

vimpyboy
A: 

If you want something quick and dirty, still using WebForms while getting all the advantages of separating your presentation code from the rest of your application, I've used the following technique which works fine.

http://www.duncangunn.me.uk/dasblog/2008/03/02/WebFormsMVCOnTheCheap.aspx

This allows me to 'drive' my app using unit tests. It's anything but perfect, but I've used it in a couple of apps now and has been a success.

Duncan
A: 

I use the new Asp.net MVC framework more and more, I really don't like the HTML and viewstate soup Webforms tend to create...

Tom Deleu
A: 

asp.net model view presenter (supervising controller) method has worked for me. also looking at asp.net mvc too

solrev
A: 

I've used the FrontContoller pattern on a number of projects, which works well, and is pretty testable too.

Phil Jenkins