Geeks With Blogs
Geeks with Blogs, the #1 blog community for IT Pros
Start Your Blog
| 6 Comments
My Other Recent Posts
Question to ponder
One way to have Telerik RadGridView control show blank value for a null value in DateTime column
Scripting & Automation
BizTalk 2006 R2
April 2013 (3)
November 2012 (3)
July 2012 (1)
May 2012 (3)
April 2012 (4)
Mastering the craft one mountain at a time.
Why the custom comparer is your friend
I have a ListView that is holding session dates for sessions someone may attend. I like to use a MonthCalendar control to allow the user to select several dates, allowing the control's DateSelected event to add an entry to the ListView control as a formatted date string for readability. Sorting is not nice though using the plain sort orders.So I implemented ......
Tuesday, April 30, 2013 4:29 PM
Casting it old school
If you have to display a two numbers and a percentage from older T-SQL you can do the following.cast((((cast((que... as decimal) / cast((query1) as decimal)) * 100)) as decimal(5,1)) as 'Percentage'This will yield you a nice percentage like 67.9. All the casting is to preserve the numbers as decimals and not be boxed to integers. Note: Each query should ......
Tuesday, April 23, 2013 1:26 PM
Crystal Reports - Getting the number under control
I do not deal many Crystal Reports but recently have had to dive into a few. One of the things that drive me nuts is dealing with numbers such as in the running totals. To get a number to display correctly you need to use the ToText function. A good site I found is this. To get the variable myNumber = 2.3798554 to display as 2.4 you would do the following: ......
Tuesday, April 23, 2013 11:19 AM
Comments in code
It is a good practice to leave comments in your code. Knowing what the hell you were thinking or later intending can be salvation for yourself or the poor soul coming behind you. Comments can leave clues to why you chose one approach over the other. Perhaps staged re-engineering dictated that coding practices vary.One thing that should not be left in ......
Wednesday, November 28, 2012 10:13 AM
LastPass.com. Get it, use it, save your sanity. This is a great program to be able to remember one hard password and be able to generate several other hard passwords for each site, application, or sign in you have to use.
Wednesday, November 28, 2012 8:44 AM
Old school trick that I forgot
If you have to support some older Winforms you might like to remember this. When opening a MessageBox to display that the user entered incorrect information, if you are doing so from a dialog, catch the DialogResult of the MessageBox and then set this.DialogResult = DialogResult.None; to prevent the dialog from closing if you want the user to try again. ......
Wednesday, November 28, 2012 8:42 AM
Scooby Doo Mystery LINQ
Sometimes it the old habits and not the LINQ query. Look to the final object assignment if data is not what you though it should be and the query tested well in LINQPad. I had failed to look into the fact the foreach loop had a coding error that was causing the data to not be part of the custom class, which output the XML from the web service. This is akin to first checking the availability of power and then the power cord if you computer has stop working.
Monday, July 23, 2012 1:51 PM
Controlling access to site folders if you cannot use Roles
I find myself on an assignment where I could not use System.Web.Security.Roles. That meant that I could not use Visual Studio's Website | ASP.NET Configuration. I had to go about things another way. The clues were in these two websites:http://www.csharpa... ......
Friday, May 25, 2012 4:08 PM
I would highly suggest subscribing to PluralSight if you are wanting to learn different technologies and frameworks. I am a Visual Learner and find that it is very easy to throw on the headphones and run the app from the phone. The videos are well designed and the screens are also well designed to be comfortable viewing on smaller screens such as the ......
Wednesday, May 23, 2012 3:53 PM
Using a class as a datasource for asp.net listview control
I found many websites that showed either misinformation, incorrect code, or denial of the ability to use a class as a datasource for an asp.net listview control. It is actually very simple.First you need to define your class. I created private fields and public property to get and set values for those fields. I then created a static function (since ......
Wednesday, May 23, 2012 9:20 AM
Copyright © DavidMadden | Powered by:
Popular Posts on Geeks with Blogs
Do You Know How Much Your Azure VM Costs?
Amazon India and Iball India : Two thief company looting India.
New book ALM and DevOps with Team Foundation Server 2015 Cookbook
How Bugs Are Really Solved
Loose wire at bottom of door GE Profile dishwasher
Geeks With Blogs Content Categories
Team Foundation Server
Brand New Posts on Geeks with Blogs
CloudKit Server To Server
NDepend on a Real Project (Again): My Critical Errors
NDepend on a Real Project (Again): My Non-Critical Errors
Enum.GetNames() for Silverlight
NDepend on a Real Project (Again): Version 6's New Stuff