# Friday, August 01, 2008
An example of how to use Precondition Filters in conjunction with HandleErrorAttribute to provide user-friendly error pages when users try to link to your URLs with invalid route data, query strings, etc...
.NET | ASP.NET | C_Sharp | MVC
Friday, August 01, 2008 5:44:51 PM (Central Daylight Time, UTC-05:00)  #    Disclaimer  |  Comments [0]  | 
# Wednesday, June 04, 2008
An updated version of ASP.NET MVC Precondition Filter that is now part of MVCContrib ...
.NET | ASP.NET | C_Sharp | MVC
Wednesday, June 04, 2008 10:00:06 AM (Central Daylight Time, UTC-05:00)  #    Disclaimer  |  Comments [2]  | 
# Wednesday, May 14, 2008
Here is code that will allow you to decorate your MVC Actions with attributes that will define your needed "preconditions". I often find the need to check for the existence of a parameter passed to a web page, such as an ID, and also often need to check if the ID is valid as well (e.g.: a valid primary key). These, I consider "preconditions".
.NET | ASP.NET | C_Sharp | MVC
Wednesday, May 14, 2008 6:30:19 PM (Central Daylight Time, UTC-05:00)  #    Disclaimer  |  Comments [4]  | 
# Wednesday, February 27, 2008
Free reusable generic Directory Poller utility class for .NET (especially useful when FileSystemWatcher is insufficent).
Wednesday, February 27, 2008 3:13:32 PM (Central Standard Time, UTC-06:00)  #    Disclaimer  |  Comments [5]  | 
# Friday, November 09, 2007
You may not realize that System.IO.File.Move() doesn't support overwriting of an existing file. In fact, it will throw an IOException if a file with the same path as sourceDestFilename already exists. Here is a wrapper method that does...
Friday, November 09, 2007 12:29:32 PM (Central Standard Time, UTC-06:00)  #    Disclaimer  |  Comments [0]  | 
# Monday, October 08, 2007
Example of how to overload operators in C#
.NET | C_Sharp | NUnit
Monday, October 08, 2007 2:35:32 PM (Central Daylight Time, UTC-05:00)  #    Disclaimer  |  Comments [0]  | 
# Friday, October 05, 2007
Attain concise, highly-readable Ruby-like date syntax with C# 3.0 Extension Methods and Fluent Interface design.
Friday, October 05, 2007 4:23:31 PM (Central Daylight Time, UTC-05:00)  #    Disclaimer  |  Comments [0]  | 
# Tuesday, August 21, 2007
Example code illustrating how to build a Fluent Interface in C#.
Tuesday, August 21, 2007 3:01:37 PM (Central Daylight Time, UTC-05:00)  #    Disclaimer  |  Comments [11]  | 
# Monday, August 20, 2007
Instead of using a different Assert method for each different type of assertion (e.g.: Assert.AreEqual() for equality comparison, or Assert.IsTrue() for boolean evaluation), the new Constraint-Based Assert Model introduced in NUnit 2.4 utilizes only one Assert method named Assert.That().
.NET | ASP.NET | C_Sharp | NUnit
Monday, August 20, 2007 10:55:20 AM (Central Daylight Time, UTC-05:00)  #    Disclaimer  |  Comments [0]  | 
# Wednesday, May 23, 2007
Six Free Custom .NET String Manipulation Functions / Methods for Everyday Use
.NET | ASP.NET | C_Sharp
Wednesday, May 23, 2007 12:11:07 PM (Central Daylight Time, UTC-05:00)  #    Disclaimer  |  Comments [1]  | 
# Tuesday, September 26, 2006
Depending on your math background, .NET's rounding functionality may not work the way you expect! Check out the included code to implement an alternative (known as Common Rounding) in addition to .NET's built-in Math.Round() function.
.NET | ASP.NET | C_Sharp | VB.NET
Tuesday, September 26, 2006 4:58:34 PM (Central Daylight Time, UTC-05:00)  #    Disclaimer  |  Comments [2]  | 
# Tuesday, November 29, 2005
This is the C# code for an ASP.NET required validator web control that requires a specified set of controls to be all populated, or all empty. It inherits from the RequiredFieldValidator ASP.NET class, so it essentially works the same way, it just treats the set of controls you specify as if they were one control (in the sense of requirement).
.NET | ASP.NET | C_Sharp
Tuesday, November 29, 2005 10:40:56 AM (Central Standard Time, UTC-06:00)  #    Disclaimer  |  Comments [0]  |