Twitter Updates for 2009-02-11
RadicalWacko February 11th, 2009
- MapMyRide.com: Completed Ride to Work. 349 (kcal). 4.90 mi.. 00:20:51 #
- MapMyRide.com: Completed Ride Home from Work. 275 (kcal). 4.73 mi.. 00:20:35 #
Powered by Twitter Tools.
- Tags:
RadicalWacko February 11th, 2009
Powered by Twitter Tools.
RadicalWacko February 10th, 2009
Powered by Twitter Tools.
RadicalWacko February 9th, 2009
Powered by Twitter Tools.
RadicalWacko January 31st, 2009
Powered by Twitter Tools.
RadicalWacko January 30th, 2009
Powered by Twitter Tools.
RadicalWacko January 29th, 2009
I just ran into an irritating little problem with using TryParse when assigning to nullable object. The following is the code I was using to assign a value from a ASP.NET dropdown list to a nullable Int32 variable:
If Int32.TryParse(ddlExample.SelectedValue, testobj.TestNullableInt32 )Then testobj.TestDescription = ddlExample.SelectedItem.Text End If
Apparently, TryParse actually attempts to access the value of the object to which it attempts to assign the parsed value which can cause an InvalidOperationException when it attempts to retrieve the value of the nullable object. So make sure to assign the parsed value to a regular type before assigning it to a nullable object. Oh yeah, I know it’s VB.NET code, but I do what the client wants.
RadicalWacko January 28th, 2009
Powered by Twitter Tools.
RadicalWacko January 27th, 2009
Powered by Twitter Tools.
RadicalWacko January 27th, 2009
If there has ever been any doubt that man is an irony making animal, then this should dispel it:
It’s amazing that people are so terrified about being offended that they run for cover the moment a single one of their convictions is challenged. Just makes me smile.
Thanks to Jessica over at ¿Dónde está la Biblioteca?