While I'm on it, anyone got a good webform wizard approach? I'm eagerly anticipating the asp:wizard control in Whidbey, but I can't wait that long. I've used sequential pages which used a database session dictionary in ASP, and I'm sure a big page with hidden / shown panels would work fine. What's the best way to handle this until we get the asp:wizard, though?
We need some help from MSDN Japan.
Simple tip that's saved me some time:
//This will set the variable test to null:
string test = Convert.ToString(ConfigurationSettings.AppSettings["Missing.Value"]);
//This will throw an exception:
string test = ConfigurationSettings.AppSettings["Missing.Value"].ToString();
The problem with the second statement is that null doesn't have a .ToString() method.
Either situation can be handled, but most of the time it's a lot cleaner to check for a null than to raise the exception.
Especially handy if you work on multiple desktops or servers. Very configurable, can run at startup or periodically update. Just writes to desktop bitmap, so it doesn't consume any additional resources.