This is your HTML markup:

This is your HTML markup on drugs ASP.NET:

Any questions?
ASP.NET offers a lot of horsepower, especially in its most recent incarnation. I give you jQuery, AJAX, Dynamic Data, control adapters, and more.
But traditional ASP.NET web pages are littered with cruft: hidden fields, obscure Javascript, and a ubiquitous <form> element even on pages which don't look, act, or talk like forms. The ASP.NET WebForms infrastructure extracts a price. That price is the sanctity of your generated markup.
We could almost call clean markup the sacrificial lamb of ASP.NET WebForms development. It's what you give up in order to achieve the illusion of state in that stateless medium known as the World Wide Web. If you develop in ASP.NET, then you've probably spent a lot of time chasing your tail as I have, ferreting out how to clean up ASP.NET-generated markup to make it palatable:
But the problem with these hacks techniques is that they attack the symptoms, rather than the cause.
Dense, encrusted markup is the natural result of trying to graft a desktop application development paradigm (with events and easily recallable state and so forth) onto an inherently stateless, request-response medium: the World Wide Web. This is what ASP.NET tries to do, and that it succeeds at all (and it does succeed) is a testament to the ingenuity of the ASP.NET development team.
Still: the generated markup is ugly and loaded with boilerplate. There can be no arguing with this, although for most line-of-business applications, it doesn't matter. A little extra markup doesn't hurt anyone, neither in the transmission over the wire, nor when the Google spiders come crawling. (Although in some worst-case scenarios, unbridled viewstate has been known to grow to a few megabytes in size).
But if you're a stickler, a purist, or if you're building something that needs to be lean and mean, a typical ASP.NET WebForms application just doesn't give you the fine-grained control that you'll want—at least, not without a lot of extra work.
You've probably heard about ASP.NET MVC by now (the official beta was released just a few days ago but the previews have been around for months) so I won't rehash.
Instead, I'd like you to take another look at that first picture, a picture of what HTML markup looks like in the land of Perfect:

When I see markup like that, well, in the words of Led Zeppelin:
Hey, hey, baby, when you walk that way
Watch your honey drip, cant keep away.
The above is actual markup generated by an ASP.NET MVC website. It's still ASP.NET—ASP.NET is now a superset which includes both the WebForms and the MVC paradigm within it—it's just not ASP.NET WebForms.
And it's clean. It's tight. It can be applied from the ground up, or grafted into an existing ASP.NET WebForms application. It's works with AJAX. You can still use server controls. You still have a design surface. Master pages. User controls. All that stuff still applies, if you want it.
But it puts you back in the driver's seat, rather than driving you around in the back seat. In the words of Scott Hanselman:
I like to think of ASP.NET MVC as the raw, acoustic version of the more heavily produced and multi-layered ASP.NET WebForms we use today.
Though when it comes to that, I like to think of ASP.NET MVC as more of an electric guitar, and you, the programmer, are the guy rocking out a Machiavellian riff with his shirt off, hair flying every which way, crowd-surfing, making love to the floor, whatever. And ASP.NET WebForms is the full 32-track 88-key digital production workstation with virtual instruments, effects, and those nifty little LED readouts.

But don't use ASP.NET MVC just because it's sexiest thing since sliced bread. Don't use ASP.NET MVC because it's what will get you the girls, even though I promise you it will. Use it because it works. It works so well that I've made a promise to myself and I hope it's one you can get on board with:
I will never again embed a form tag into a web page that's not intended to be submitted.
If that, if on nothing else, we should be able to agree.
Rock on?
46 comment(s)
If MVC was around back in the day, maybe I would not have given up Microsoft development for good. Now that I've tasted Linux and Mac, there's really no going back though.
Deadprogrammer on Monday, October 20, 2008I'd use anything if it got me the girls. So screw any other reason ASP.NET MVC is for me!
Poker is Rigged | Forums on Monday, October 20, 2008Lovely stuff. Can't wait to get started.
jammus on Monday, October 20, 2008Thanks for the post!
Terry Smith on Monday, October 20, 2008Cool, I may just give MVC a spin, in this case.
JamesHip on Monday, October 20, 2008Good writeup on cleaning up ASP.NET.
An interesting implementation using MVC is Kigg - a Digg clone although what is on Codeplex doesn't work with the latest releases. I have a (somewhat) working version out at http://www.theburnlist.com/
Keep the good pokerbot stuff coming!
Dave
Dave R on Monday, October 20, 2008The Kigg demo is a good one. I looked at this back in Preview...3? 4?
http://www.codeplex.com/Kigg
Rob Conery also has an excellent MVC storefront sample:
http://blog.wekeroad.com/mvc-storefront/mvc-storefront-part-1/
And for those who are just getting started, the TaskList demo is a good introduction:
http://www.asp.net/Learn/mvc/tutorial-01-cs.aspx
James Devlin on Monday, October 20, 2008I hate Led Zeppelin.
Anonymous on Tuesday, October 21, 2008I love Led Zepplin.
holysmokes99 on Tuesday, October 21, 2008Should we be scared as PHP Jockeys?
Popo on Tuesday, October 21, 2008...Some people never wrote a form tag while building enterprise level web apps with rapid application development mvc frameworks like http://www.atk-framework.com/ (secret tip). I love Pet Shop Boys...and its not a shame ;-)
Popo on Tuesday, October 21, 2008Great post. A little light on the information but I like that you've accentuated what to me is the selling point of ASP.NET MVC, that's CLEAN MARKUP. I could give a damn about test-driven development. I could give a damn about clean separation of concerns. Just let me output clean markup so my PHP buddies stop throwing stones.
Anonymous on Wednesday, October 22, 2008PHP produces clean markup? Gasp. What version are you using?
Ed K. on Wednesday, October 22, 2008Upvoted just for the pic of Jimmy Page
Ed K. on Friday, October 24, 2008@Ed K.: PHP doesn't produce any markup on its own. Granted, the language itself looks horrible (even though I'd rather that instead of the mixed form\runat fest). At least it doesn't require HTML hacks like ASP.NET does out of the box.
It's great to see stuff like this around. Thanks for the post!
Anonymous on Sunday, October 26, 2008Has anyone else gotta a threatening email from Pokerstars about Coding the Wheel?
JagBot on Monday, October 27, 2008They threatened to break my knees.
Vince Offer on Monday, November 03, 2008It's been 20 days since this article was posted. About time for Daniel Radcliffe to start posting here again. He still hasn't told us if he's boned the chick who plays Hermione yet.
Terry Smith on Monday, November 10, 2008I really hope this website is not dead, but without a post in the last month I fear the worst. RIP Coding the Wheel?
Adam on Wednesday, November 19, 2008I'm hoping he's off on some secret mission...
Terry Smith on Saturday, November 22, 2008JagBot - PokerStars sent you an email?
I spent about 2 mos part time building off of the stuff here and I'm at the point where the entire gamestate in pokerstars is captured in a class. So I have all of the communication and game logic in there. But have been stagnating on the poker part of it.
Which leads me to my point... In lieu of creating an entire bot that plays for you unattended, it may be better to just make an assistance bot. Something that allows you to play more tables. So if you are a guy who can play 4 tables comfortably, you can make a preflop only bot so you can play 12 tables. That way you are always at the computer and you don't have to worry about CAPTCHA.
Anonymous on Sunday, November 23, 2008this post, dont dead.
go jamesss
alex on Sunday, November 23, 2008Lost my last 25 bucks, while playing drunken ;-)
...but now Im really able to hit the micros.
Will reaching homless state ;-)...
...so where are the news about building a pooker bot?
...of course Im doing some seriouse cooding stuff too. ;-)
c. u.
popo on Friday, November 28, 2008Dude! Where are you? It's been almost two months!
Terry Smith on Monday, December 08, 20082+2 forum members kidnapped him...
Anonymous on Tuesday, December 09, 2008Would believe he is catched by some poker vendors with an offer could not be rejected ;-)...hu hu hu.
popo on Sunday, December 14, 2008Two full months... I hope you're doing good and just decided to stop posting for a while for whatever reason. Take care.
D on Thursday, December 18, 2008Or the greatest bluff of James D. whuah ha ha...
popo on Monday, December 22, 2008merry christmas feliz navidad
from peru
james devlin.
alex on Wednesday, December 24, 2008Geez, you're in PERU? Well, Merry Christmas anyways!
Terry Smirth on Wednesday, December 24, 2008This page will be the last one I'm affraid : Well it was good the time this site was alive.
Thanks for the tips :)
Regards
Anonymous on Thursday, December 25, 2008Quote from Tenascious-D: KG: Dude, now that we have the album out ... will it make us more popular ... with the ladies? Jack: Ahh, yah.
David Robbins on Sunday, July 19, 2009I can use something else if I did girls. Therefore, like any other ASP.NET MVC is right for me! logo design
Alex on Thursday, June 24, 2010nice article. keep post like this...
Ebel replica watches on Tuesday, July 20, 2010nice article. keep post like this...
Tonino Lamborghini replica watches on Saturday, July 24, 2010PerformingGraham for sale that will create a one-wayswiss watches backlink to your website whichMaurice Lacroix watches is a good point to have. It is Patek Philippe watchesa time-consuming Tag Heuer for saleprocess even though it produces good outcomes U-boat for saleand works. You can also swiss watchespost comments on blogs alongMaurice Lacroix watches together with your link, but make sureGraham watches these blogs are do-follow, which dolce & gabbana handbagsindicates the link that youreplica coach handbags simply post will probably be replica handbagscounted by the search engines jimmy choo replicaas a backlink.There are many thingsversace replica handbags that contribute to online businessjuicy couture replica failure, and the lack of good action thomas wyldeis surely one of the deadliest business-killersdolce gabbana handbags on the net. Take action like by no means chloe handbags replicaprior to, and don’t get struck by analysis paralysisburberry replica. Your achievement lies in your rapid actionchanel replica and how well you apply numerous strategies.
replica watches on Saturday, July 24, 2010I will keep visiting this blog very often. Blu ray ripper /
ipad converter on Sunday, July 25, 2010ed hardy, cheap ed hardy, ed hardy clothing, ed hardy outlet, ed hardy jeans, ed hardy bags, ed hardy swimwear, ed hardy shirts, ed hardy tee, ed hardy caps, ed hardy purse, ed hardy board shorts, ed hardy shoes, ed hardy for men, ed hardy for women, ed hardy jeans for women.
cheap ed hardy on Tuesday, July 27, 2010ed hardy, cheap ed hardy, ed hardy clothing, ed hardy outlet, ed hardy jeans, ed hardy bags, ed hardy swimwear, ed hardy shirts, ed hardy tee, ed hardy caps, ed hardy purse, ed hardy board shorts, ed hardy shoes, ed hardy for men, ed hardy for women, ed hardy jeans for women.
cheap ed hardy on Tuesday, July 27, 2010Louis vuitton Best Humanoid Award. Since 2002, Louis vuitton has sponsored the “Louis vuitton online shop” for RoboCup, an international research and
West offer best cheap designer HOT fake fashion unique best Louis vuitton Bags outlet cheap 2157 wholesale,discount replica HOT fake fashion unique
http://www.sale4louisvuitton.com/ Offer all kinds of lv outlet for lowest price.
Top Quality Wholesale Designer lV, Get a brand new bag of Gucci, Chanel,Louis vuitton and other Famous Brand Bags. Buy Now!
louisvuitton4 on Thursday, July 29, 2010Wholesale NFL Jerseys
Cheap NFL Jerseys
NFL Jerseys
NFL Football Jerseys
Women NFL Jerseys
Kid NFL Jerseys
Super Bowl Jerseys
Super Bowl NFL Jerseys
Throwback Jerseys
Throwback NFL Jerseys
Cheap Throwback Jerseys
Wholesale Throwback Jerseys
Cheap Super Bowl Jerseys
Wholesale Super Bowl Jerseys
youth nfl jerseys wholesale
youth nfl jerseys cheap
nfl youth jerseys
Baltimore Ravens Jerseys
Chicago Bears Jerseys
Cincinnati Bengals Jerseys
Denver Broncos Jerseys
Dallas Cowboys Jerseys
Green Bay Packers Jerseys
Indianapolis Colts Jerseys
Minnesota Vikings Jerseys
New England Patriots Jerseys
New Orleans Saints Jerseys
New York Jets Jerseys
Arizona Cardinals Jerseys
Buffalo Bills Jerseys
Atlanta Falcons Jerseys
Carolina Panthers Jerseys
Cleveland Browns Jerseys
Houston Texans Jerseys
Detroit Lions Jerseys
Jacksonville Jaguars Jerseys
Kansas City Chiefs Jerseys
Miami Dolphins Jerseys
New York Giants Jerseys
Philadelphia Eagles Jerseys
San Francisco 49ers Jerseys
Oakland Raiders Jerseys
Seattle Seahawks Jerseys
Pittsburgh Steelers Jerseys
St Louis Rams Jerseys
San Diego Chargers Jerseys
Tampa Bay Buccaneers Jerseys
Tennessee Titans Jerseys
Washington Redskins Jerseys
Ray Lewis Jerseys
Ed Reed Jerseys
Joe Flacco Jerseys
Terrell Suggs Jerseys
Dick Butkus Jerseys
Greg Olsen Jerseys
Matt Forte Jerseys
Devin Hester Jerseys
Walter Payton Jerseys
Brian Urlacher Jerseys
Lance Briggs Jerseys
Jay Cutler Jerseys
Carson Palmer Jerseys
Rey Maualuga Jerseys
Chad Johnson Jerseys
Demarcus Ware Jerseys
Jason Witten Jerseys
Terrell Owens Jerseys
Felix Jones Jerseys
Marion Barber Navy Jerseys
Marion Barber Jerseys
Emmitt Smith Jerseys
Miles Austin Jerseys
Roger Staubach Jerseys
Troy Aikman Jerseys
Tony Romo Jerseys
Eddie Royal Jerseys
Brandon Marshall Jerseys
Aaron Rodgers Jerseys
A.J. Hawk Jerseys
Donald Driver Jerseys
Greg Jennings Jerseys
Peyton Manning Jerseys
Dallas Clark Jerseys
Robert Mathis Jerseys
Marvin Harrison Jerseys
Drew Brees Jerseys
Marques Colston Jerseys
Pierre Thomas Jerseys
Reggie Bush Jerseys
Jeremy Shockey Jerseys
Tarvaris Jackson Jerseys
Adrian Peterson Jerseys
Jared Allen Jerseys
Mark Sanchez Jerseys
Thomas Jones Jerseys
Leon Washington Jerseys
Brett Favre Jerseys
buynflshop on Thursday, July 29, 2010We don't need to market our Replica handbags vigorously, because we simply deliver the best Louis Vuitton handbag. Our
replica handbags are made with the
absolutely high quality replica Louis Vuitton handbags,Treat Yourself to A Designer Handbag,Announcing Top Quality Designer Handbag Replicas
Vuitton">Louis Vuitton
At A FractionLouis Vuitton has many stylish purses.It is famous for its high quality, unique styles and fashionable designs.Louis
Vuitton online store leads the fashion trend in the ...
louis vuitton on Thursday, July 29, 2010essay essay writing essay writing service essay writing service uk
jane on Friday, July 30, 2010Pool Temperature Madera Jobs Madera Pest Control Madera Dentist Merced Dentist Visalia Dentist Modesto Dentist Fresno Limousine Fresno Granite briefcases leather leather briefcases prospect solution | prospect solutions | prospectsolution | prospectsolutions | prospectsolution.com prospect solution | prospect solutions | prospectsolution | prospectsolutions | prospectsolution.com prospect solution | prospect solutions | prospectsolution | prospectsolutions | prospectsolution.com
carmi on Friday, July 30, 20102010 chanel handbags hot sale on buybury.com, you can discover all kinds of fashion chanel handbags in free shipping worldwide, and buybury.com provide chanel bags are all 70% discount, that attracted numerous chanel funs, and you can place an order for cheap chanel handbags will have the same discount. If you are looking for chanel handbags now, do not hesitate, chanel hobos on our site is really noble but cheaper. All chanel bags really are wonderful.
chanel handbags on Friday, July 30, 2010Replica miu miu handbags are not just beautiful and elegant, but it is also at excellent quality and similar design as the real. You will like it once you see it. Now attention please, at our shop, we are holding a promotion. You can buy replica miu miu bags of high quality with the lowest price. Meanwhile, miu miu handbags buying from here you can enjoy free and fast delivery shipping. Welcome to our shop!
miu miu bags on Friday, July 30, 2010