MSDN Webcast report: ASP.NET Soup To Nuts - Tips and Tricks
I had a chance to check out the “Tips and Tricks” MSDN Webcast from the ASP.NET Soup to Nuts series - there’s so much stuff in 2.0 that I figured it was well worth my time to get a refresher/review, especially since, like most MSDN webcasts, it happened at noon. Again, like every other MSDN webcast, my lunch wasn’t ready when it started. Wireless laptops are handy. :)
Here are my notes. Has anyone else had any experiences with these features?
The webcast was basically a response to questions that the Bill had been asked over the course of the series so far, so there wasn’t much of a slide deck, just a series of demos covering various bits of .Net, including…
Wizard control
I’ve implemented a few wizard-type multi step processes for data entry in the past, and while it’s a lot easier to do it in ASP.NET than, say, PHP, it still hurts a ton. The new Wizard control appears to take care of a lot of the mess for you, and it’s definitely going to get a workout when I have to do the next one of these.
Multiview control
Simplifying the above, this appears to be a replacement for manually managing Asp:Panel controls and their visibilities depending on what’s going on - I know I do a ton of that already, so if there’s a nicer way to handle these cases, bring it on!
Validation controls
I was already well aware of these (they do save a lot of time), but it struck me as they went through the demo that I always invoke them from code view (ASP.NET code, not the C# code file). I spend most of my time in this view, probably because of too many burns in the 2003 days, but I really should give the graphical editor another try. “Act like it’s a demo” might be a neat mantra to improve my productivity. :)
Binding to XML
This is just another example of DataSource objects, in this case an XmlDataSource. Nothing new here for me, but I need every reminder to use the built in controls that I can get - I tend to do this crap with code still.
urlMappings section of system.web
Where did this come from? Anything that remotely approximates .htaccess/mod Rewrite in the Apache world needs to be sent to me via FedEx - it’s the weakest part of IIS, as far as I’m concerned.
FileUpload control
I ported some of our 1.1 code to this a while back. It’s still not clear to me if the 2.0 version has the same problems with big files (several clients uploading really big files at the same time can cripple a server). Anyone?
Setting focus to fields on startup
Not too exciting, just putting textBox.Focus() into the Load event for the page. I guess Focus is new in 2.0. When they started talking about default controls I thought they were going to talk about dealing with the enter key in forms.
MaintainScrollPositionOnPostback
This could be a handy page directive for big pages. I need to review the directives in 2.0…
New properties for the Label Control
Things like AccessKey, AssociatedControlID, etc really show how the Label control has gone from a “why bother” widget in 1.1 to something that makes accessibility easy. I really got tired of trying to do things the “right” way and the ASP.NET way in 1.1 - they were really at odds back then.