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
5/14/2008 6:30:19 PM (Central Daylight Time, UTC-05:00)  #    Disclaimer  |  Comments [4]  | 
 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
8/20/2007 10:55:20 AM (Central Daylight Time, UTC-05:00)  #    Disclaimer  |  Comments [0]  | 
 Thursday, August 09, 2007
You may be familiar with ROW_NUMBER(), but did you know you'll also need to combine that with a Common Table Expression (CTE) to paginate through your records?
8/9/2007 8:16:44 PM (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
5/23/2007 12:11:07 PM (Central Daylight Time, UTC-05:00)  #    Disclaimer  |  Comments [0]  | 
 Thursday, February 15, 2007
Free helper method to convert a SQL query to CSV format for easy output to a file, the console, or via a HttpResponse (for you ASP.NETers out there looking for an easy way to dynamically output a CSV for real-time data download).
.NET | ASP.NET | MS SQL | NUnit | VB.NET
2/15/2007 6:17:33 PM (Central Standard Time, UTC-06:00)  #    Disclaimer  |  Comments [0]  | 
 Wednesday, January 31, 2007
Free .NET code that converts the contents of an ArrayList to a delimited string
.NET | ASP.NET | NUnit | VB.NET
1/31/2007 12:11:02 PM (Central Standard Time, UTC-06:00)  #    Disclaimer  |  Comments [0]  | 
 Friday, December 08, 2006
Free code that determines if 2 lists (any objects that implement the IList interface, such as Array, ArrayList, ListBox, etc.) contain the same objects or value types.
.NET | ASP.NET | VB.NET | NUnit
12/8/2006 2:30:14 PM (Central Standard Time, UTC-06:00)  #    Disclaimer  |  Comments [0]  | 
 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
9/26/2006 4:58:34 PM (Central Daylight Time, UTC-05:00)  #    Disclaimer  |  Comments [2]  | 
 Tuesday, January 10, 2006
What do I mean by dynamic text form fields? Let's say I have a table Contacts that stores typical contact information for a Contact Management system...
.NET | ASP.NET | MS SQL | VB.NET
1/10/2006 7:26:37 PM (Central Standard Time, UTC-06:00)  #    Disclaimer  |  Comments [0]  | 
 Friday, December 02, 2005
This VB.Net code checks the validity of a credit card number. Pass a credit card number to the function and it returns true or false based upon the CC number's validity.
.NET | ASP.NET | VB.NET
12/2/2005 2:01:40 PM (Central Standard Time, UTC-06:00)  #    Disclaimer  |  Comments [0]  | 
 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
11/29/2005 10:40:56 AM (Central Standard Time, UTC-06:00)  #    Disclaimer  |  Comments [0]  |