With so many of my favorite blogger compatriots moved over to codebetter... I have decided to join them.
I may cross post for a while, but to be assured of new content better link to http://codebetter.com/blogs/eric.wise/
If anyone in the Cleveland area is looking for a .NET contractor with a specialty in ASP .NET feel free to contact me.
If you're not in cleveland, and don't mind a virtual employee feel free to contact me.
Grant Killian has a good article about why a coder shouldn't use try-catch blocks in just any situation. I am ashamed to admit that back when I first started using .NET I was guilty of the sin he speaks of.
What I wanted to add to his post was another very common poor usage of try-catch I have seen many inexperienced coders (including myself at one point in time) do.
try
{
ddlMyDropDownList.Items.FindByValue(myValue).Selected = true;
}
catch(Exception ex)
{
//Do nothing or display some kind of warning message
}
Bad Bad Bad! Try this instead:
ListItem li;
li = myDropDownList.Items.FindByValue(myValue);
if(li != null)
li.Selected = true;
This page has been moved to
CodeBetter.Com. Please update your links accordingly. The new post URL is:
http://codebetter.com/blogs/eric.wise/archive/2005/01/26/48571.aspx
This page has been moved to
CodeBetter.Com. Please update your links accordingly. The new post URL is:
http://codebetter.com/blogs/eric.wise/archive/2005/01/20/46580.aspx
This page has been moved to
CodeBetter.Com. Please update your links accordingly. The new post URL is:
http://codebetter.com/blogs/eric.wise/archive/2005/01/20/46551.aspx
This page has been moved to
CodeBetter.Com. Please update your links accordingly. The new post URL is:
http://codebetter.com/blogs/eric.wise/archive/2005/01/16/44815.aspx
This page has been moved to
CodeBetter.Com. Please update your links accordingly. The new post URL is:
http://codebetter.com/blogs/eric.wise/archive/2005/01/13/44186.aspx
This page has been moved to
CodeBetter.Com. Please update your links accordingly. The new post URL is:
http://codebetter.com/blogs/eric.wise/archive/2005/01/12/43639.aspx
This page has been moved to
CodeBetter.Com. Please update your links accordingly. The new post URL is:
http://codebetter.com/blogs/eric.wise/archive/2005/01/05/41736.aspx
This page has been moved to
CodeBetter.Com. Please update your links accordingly. The new post URL is:
http://codebetter.com/blogs/eric.wise/archive/2005/01/04/41272.aspx
This page has been moved to
CodeBetter.Com. Please update your links accordingly. The new post URL is:
http://codebetter.com/blogs/eric.wise/archive/2004/12/30/39807.aspx
This page has been moved to
CodeBetter.Com. Please update your links accordingly. The new post URL is:
http://codebetter.com/blogs/eric.wise/archive/2004/12/30/39805.aspx
This page has been moved to
CodeBetter.Com. Please update your links accordingly. The new post URL is:
http://codebetter.com/blogs/eric.wise/archive/2004/12/27/39181.aspx
This page has been moved to
CodeBetter.Com. Please update your links accordingly. The new post URL is:
http://codebetter.com/blogs/eric.wise/archive/2004/12/23/38532.aspx
This page has been moved to
CodeBetter.Com. Please update your links accordingly. The new post URL is:
http://codebetter.com/blogs/eric.wise/archive/2004/12/23/38526.aspx
This page has been moved to
CodeBetter.Com. Please update your links accordingly. The new post URL is:
http://codebetter.com/blogs/eric.wise/archive/2004/12/16/37341.aspx
This page has been moved to
CodeBetter.Com. Please update your links accordingly. The new post URL is:
http://codebetter.com/blogs/eric.wise/archive/2004/12/15/37138.aspx
This page has been moved to
CodeBetter.Com. Please update your links accordingly. The new post URL is:
http://codebetter.com/blogs/eric.wise/archive/2004/12/13/36332.aspx
This page has been moved to
CodeBetter.Com. Please update your links accordingly. The new post URL is:
http://codebetter.com/blogs/eric.wise/archive/2004/12/06/35276.aspx