Author Archive
SAP Account Determination
Friday, March 19th, 2010Popularity: 4%
C#: Break vs. Continue in Foreach Loops
Tuesday, March 16th, 2010A C# Quick Tip: You’ve probably seen ‘break’ before in Switch Case statements, but it also plays an important role in Foreach Loops.
To break completely out of a foreach loop (foregoing all the remaining loops), use: break;
To go to the next iteration in the loop, use: continue;
Popularity: 3%
C#: That Pesky DBNull Error in Datatables
Monday, March 15th, 2010
Datatables and Tableadapters are one of the most beautiful things about C# and Visual Studio, until you’re processing rows in your datatable and you get something that reads like “The value for column ‘your_column’ in table ‘your_table’ is DBNull.” If you go a little further, you may get: “Exception Details: System.InvalidCastException: Specified cast is not valid.” You may go to your Datatable in your Dataset and start trying to change the NullValue for the offending column or trying to change the DefaultValue in the column properties, but chances are that the data type will not let you change that NullValue. It will insist on “(Throw Exception)”. (more…)
Popularity: 3%
ASP.NET: Hide Menu Items by Role with Security Trimming
Thursday, February 4th, 2010
ASP.NET makes authorizations and security fairly simple with its roleManager, Authentication, and SiteMap providers. This quick hint only covers how to hide a particular menu item from the standard Menu and TreeList navigation components when using a SiteMap provider. (more…)
Popularity: 6%
WordPress: Add Scripts to the Pages You Want
Sunday, December 27th, 2009WordPress – Can’t Automatically Upgrade to New Versions?
Thursday, November 12th, 2009
So, another security fix comes out for WordPress…2.8.6 this time. And I begin making the rounds to my sites upgrading. This is now a ritual for me since some kind hacker hacked me with the 2.7 hidden admin user exploit. Everything is going smooth…I’ve done 3 sites, when I get to a new site I’m working on, and it will not automatically upgrade for anything. (more…)
Popularity: 6%
WordPress ReWrite – new Plugin Coming and a Hint
Friday, October 2nd, 2009First of all, let me start by saying that Custom ReWriting in WordPress has consumed way more of my time than it ever should have. I have prayed and pleaded, even considered asking one of the WordPress Gurus on their message board, but I’ve not had much luck getting responses there (questions were probably so esoteric that nobody cared but me
).
Popularity: 6%


