Scott Hanselman

Hanselminutes Podcast 202 - A different way to do ASP.NET WebForms with WebFormsMVP

February 21, 2010 Comment on this post [10] Posted in ASP.NET | ASP.NET MVC | Open Source | Podcast
Sponsored By

2008-GrafittiSmall My two-hundred-and-second podcast is up. I sit down (in my home, actually) with Tatham Oddie to talk about the WebFormsMVP open source project created by he and Damian Edwards.  What does it add?  Can we have the best of both worlds, convenience, controls and testability?

Subscribe: Subscribe to Hanselminutes Subscribe to my Podcast in iTunes

Download: MP3 Full Show

Links from the Show

Do also remember the complete archives are always up and they have PDF Transcripts, a little known feature that show up a few weeks after each show.

I want to add a big thanks to Telerik. Without their support, there wouldn't be a Hanselminutes. I hope they, and you, know that. Someone's gotta pay the bandwidth. Thanks also to Carl Franklin for all his support over these last 4 years!

Telerik is our sponsor for this show.

Building quality software is never easy. It requires skills and imagination. We cannot promise to improve your skills, but when it comes to User Interface and developer tools, we can provide the building blocks to take your application a step closer to your imagination. Explore the leading UI suites for ASP.NET AJAX,MVC,Silverlight, Windows Forms and WPF. Enjoy developer tools like .NET reporting, ORM, Automated Testing Tools, TFS, and Content Management Solution. And now you can increase your productivity with JustCode, Telerik’s new productivity tool for code analysis and refactoring. Visit www.telerik.com.

As I've said before this show comes to you with the audio expertise and stewardship of Carl Franklin. The name comes from Travis Illig, but the goal of the show is simple. Avoid wasting the listener's time. (and make the commute less boring)

Enjoy. Who knows what'll happen in the next show?

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook twitter subscribe
About   Newsletter
Hosting By
Hosted in an Azure App Service
February 21, 2010 10:55
Great discussion of the Web Forms MVP framework, covered it off well.

I've recently kicked off on a proof of concept for porting/integrating this framework into an existing Web Forms application. Focusing on cleaning up parts of the system that have the most complex logic but are lacking in testing and in particular lacking in the ability to be easily tested (business logic trapped in the code behind files).

This episode will be very useful to help sell/inform others on my team on the value of adding such enhancements to our Web Forms application.

Thanks Scott really nice questions & Tatham for detailed answers.
February 21, 2010 11:28
What is the difference between this project and the P&P web client guidance project? is it the same project?
February 21, 2010 11:59
so far we have many things support webforms MVP:
- Microsoft P&P Web Client Guidance
- Microsoft P&P Web Client Software Factory
- and now WebFormsMVP Project

There is a lot of work to do before choosing ur framework to stay with healthy and clean asp.net webforms :)
February 21, 2010 22:02
An interesting listen, but I think I should point out that what Tatham said about Viewstate and the page init event could be construed as being misleading. By the time your page's init event is raised it's child controls will already be tracking Viewstate, so in the example that he gave, if you populated the dropdown from inside an event handler attached to the page's init event or within an override of OnInit the items would still be serialized into viewstate. To avoid this you would have to subscribe to the dropdown's init event and populate it from within that handler.
February 22, 2010 0:51
@SteveR,

Yep, you're definitely correct here. I probably should have qualified my statements to talk about PreInit on the page, or Init on the controls. Hopefully my statements (as they were) will at least point some people to learn about view state tracking.

Thanks for the comment!
February 22, 2010 1:58
how is greys online australias highest ecommerce site ?
February 22, 2010 2:11
I downloaded the source for this, and it appears to be a VS 2010 project. Is there no support for VS 2008 in this project?

How does this framework handle web part scenarios? It sounds like the messaging system might handle communication between multiple views on a page, but this isn't clear.
February 22, 2010 6:53
John,

The source code is managed using VS2010 but the compiled libraries work fine on ASP.NET 3.5 SP1. Unless you're looking to contribute changes, just grab the compiled release.

More info about the messaging bus is available here: http://wiki.webformsmvp.com/index.php?title=Feature_walkthroughs

Tatham
February 25, 2010 3:41
Interesting podcast. Tatham mentioned a paper that discusses why not to use Page_Load. Does anyone have a reference for this?

Thanks
November 02, 2010 16:17
Awesome!!!

Comments are closed.

Disclaimer: The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.