0

A way around page refreshes/back button problems with a simple concept

Posted by Tim on May 17, 2010 in .NET Framework, ASP.NET, News, Open Source, Uncategorized

The problem: You have a form in which the user fills out and clicks a “submit” button that validates their input, does some processing and output’s some results. The problem being the application needs to cater for page refreshes, back buttons and the case of the page being submitted more than once (latency/slow internet connection). [...]

Tags: , ,

 
0

Best Coding Practices – TIP 4

Posted by Tim on April 4, 2009 in .NET Framework

Use enum’s where required.   Do not use Strings or Numbers to indicate discrete values. References: http://msdn.microsoft.com/en-us/library/sbbt4032(VS.80).aspx

Tags:

 
0

Best Coding Practices – TIP 3

Posted by Tim on February 20, 2009 in .NET Framework, C#

The use of partial classes can help improve coding for the following reasons: As you can split code into seperate physical files, its easier to seperate UI and Business Logic that may belong in a single class Produces clean and organised code No performance hit… The compiler groups all partial classes into one entity during [...]

Tags: ,

 
0

Best Coding Practices – TIP 2

Posted by Tim on February 11, 2009 in .NET Framework, Uncategorized

When you throw an exception, use the throw keyword..do not throw the original exception. This way, the original call stack is preserved.

Tags:

 
1

Best Coding Practices – TIP 1

Posted by Tim on February 11, 2009 in .NET Framework, Uncategorized

Use // or /// for comments. Avoid using /* … */ This gives you the ability to generate XML documentation from VS.

Tags:

Copyright © 2008-2010 Tim's CodeLab Blog All rights reserved.
Desk Mess Mirrored v1.7 theme from BuyNowShop.com.