TryParse and Nullable Types

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

.csharpcode, .csharpcode pre { font-size: small; color: black; font-family: consolas, “Courier New”, courier, monospace; background-color: #ffffff; /*white-space: pre;*/ } .csharpcode pre { margin: 0em; } .csharpcode .rem { color: #008000; } .csharpcode .kwrd { color: #0000ff; } .csharpcode .str { color: #006080; } .csharpcode .op { color: #0000c0; } .csharpcode .preproc { color: #cc6633; } .csharpcode .asp { background-color: #ffff00; } .csharpcode .html { color: #800000; } .csharpcode .attr { color: #ff0000; } .csharpcode .alt { background-color: #f4f4f4; width: 100%; margin: 0em; } .csharpcode .lnum { color: #606060; }

[Read More]
Categories: Technology 

Componded Irony

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?

Categories: Humor News and Politics 

2009 Freewheel Route Announced

View Larger Map

The route for Freewheel crosses the western side of the state this year.  The itinerary is as follows:

  • Saturday, June 6th -  Duncan
  • Sunday, June 7th – Anadarko
  • Monday, June 8th – Cordell
  • Tuesday, June 9th – Cheyenne
  • Wednesday, June 10th – Thomas
  • Thursday, June 11th – Fairview
  • Friday, June 12th – Alva
  • Saturday, June 13th – Kiowa, KS

Registration begins the second week of February and will be $110 for the full week.  I can’t wait for June to get here!

[Read More]
Categories: OKC Bicyclist  Tags: freewheel tours 

Apologies

Sorry, it’s been busy around the office as of late and this site has been slower to get started than I had ever imagined, but I’ve got several posts to make and should be able to get started on the rest of the work soon.

Categories: Site Updates 

Norman Updates Bicycle Routes

192912800_cbd0339728 Norman is improving and expanding the bicycle routes throughout the city.  Hopefully Oklahoma City will start improving the street routes as well.  I’d love to see a route going down to Norman and out to Lake Thunderbird for a great camping weekend.

Yellow “Share the Road” signs to urge motorists and bicyclists to coexist peacefully and safely will be popping up around town as the city’s Bicycle Advisory Committee works to make roads safer for both.

[Read More]
Categories: OKC Bicyclist  Tags: bicycle-routes commuting norman 

Schlegel Bicycles to Offer Maintenance Classes

Schlegel Bicycles will be offering both the novice and intermediate versions of their Park School bicycle maintenance classes.  The novice class will be offered on February 17th and the intermediate class will be on February 7th and 14th.  The complete description of the courses are below:

Novice Bicycle Maintenance Class

Students get an overview of many aspects of bicycles maintenance. Tires and tubes, brakes, and gear adjustments are demonstrated, discussed and worked on by the students. The class content is similar to a 90 day check-up on the bike. This is an excellent class for someone with a relatively modern or brand new bike who wishes to learn about maintenance, but can only make a limited time commitment for the class. In the novice class, the emphasis is placed on knowing when there is a problem, and on cleaning the bike. The presentations will often be descriptive. For example, showing what rear cogs are and how they work is part of the class, but demonstrating or practicing their removal are beyond the scope of this class. This is about a three-four hour class. Cost for the novice class is $40.00 per person. This class is typically offered on a monthly basis.

[Read More]
Categories: OKC Bicyclist  Tags: education maintenance 

Tulsa’s Bicycle Sharing Program Going Well

The bright pink, old-fashioned Townie bicycles stationed along River Parks appear to be a hit with park visitors.

With a full year’s worth of data still being evaluated, officials believe that the free bikes were checked out by about 13,000 riders, said Tom Cooper, a member of the Tulsa Townies LLC, which provides and maintains the two-wheelers.

Read the full story: Tulsa World: Bike program on a roll

Categories: OKC Bicyclist  Tags: bicycle-sharing tulsa