Design View Is For Wussies

posted on 2004-10-08 at 23:50:56 by Joel Ross

If you've developed ASP.NET applications in Visual Studio.NET, you've probably experienced either of these issues. When you switch from Design view to HTML view, your HTML is rewritten, and not in a good way. And here's an issue that I've seen before too - using the Design view can cause previous event wire ups to disappear.

This isn't a post about the problems with design view. Those are well documented, and will supposedly be fixed in Whidbey. Will they be? I don't know. I don't really care. I would much rather deal with the HTML directly, and wire up control events manually, using the OnInit override. I'm not really sure the last time I've used design view. It just doesn't provide me with any value. The representation isn't good enough to know if the design of the page is the way it needs to be, and I'm not going to be moving things around by drag and drop.

I even told my current project team that design view is for wussies. Of course, I said the same thing about a mouse too!

In reality, I'm just messing around. Build your software however you want, but if you take one thing away from this, it's that you'll be better off if you wire up your events by hand, rather than relying on the designer to do it for you.

Categories: ASP.NET