Friday, March 27, 2009

Boise Code Camp 2009

Boise Code Camp starts on Saturday (March 28th) and ends on Sunday (march 29th). Should be very interesting and with great presentations. For more details you can go to http://boisecodecamp.org/ .

Wednesday, March 18, 2009

CultureInfo Class

This is just a heads up of a new article that I am about to post here about The CultureInfo class. Just need a couple more days to verify a few things and then I should be ready.

Tuesday, March 17, 2009

decimal ToString

A few things that I have noticed when trying to convert decimal into string value:
1. If the decimal value is a nullable property and you want to format the string (.ToString("C"))=> you cannot do the following:

   SomeTextBox.Text = SubTotal.ToString("C");

   Where SubTotal is a nullable decimal property.

Instead you will have to do:

   //This will assign subTotal a value and therefore it is not nullable.
   var subTotal = SubTotal ?? 0.0m;
   SomeTextBox.Text = subTotal.ToString("C");

2. As far as string formating for a decimal value:
//This will display two decimal places
   subTotal.ToString("F");
//This will separate thousands
   subTotal.ToString("N");
//This will separate thousands and will precede with currency sign based on local environment.
   subTotal.ToString("C");

Thursday, March 12, 2009

Paste Operation Detected!




I got this one from a co-worker (Jarod) and loved it so much that I decided to share it with the www. The funny thing was that last night I learned that I can cycle through the clipboard ring to past different things (last 20 items I believe) in VS by pressing Ctrl +Shift + V.

Tuesday, March 3, 2009

My Day with Telerik Controls

This is just a quick example of what my day looks like => fighting with telerik's tools and their support team.
This time I was dealing with the RadEditor:
http://www.telerik.com/community/forums/aspnet/editor/max-length.aspx#757876
 
Watch the latest videos on YouTube.com