January 2007 - Posts

23 January 2007
ASP.NET: Utility.TryParse() To Better Handle Parameters
In ASP.NET, one of the tedious things to do is to get values from query string parameters, cast/convert to proper types and assign to local variable for further processing. Initally most developers simply code like this: 1 int orderId = Request.QueryString[ "order_id" ]; 2 OrderBLL orderManager = new... Read More...
20 January 2007
.NET: Build.Cancel = Ctrl + Break
If you're not using this shortcut you probobly be either using a build server or build script on your project OR you are suffering from waiting for your build to start and press Stop to continue working, because you have accidentally pressed the F5 while coding. Now that you're have 5+ web projects,... Read More...
16 January 2007
.NET: Advanced Data Paging with Sorting In SqlServer 2005
dwarvend, a former teammate in my frist company once asked me about data paging large resulsets in ASP.NET. Data paging in SQL Server 2005 is relatively easy with new RowNumber feature but supporting dynamic sorting is little tricky. I have this executable to script to demonstrate this sorting. --check... Read More...
16 January 2007
L10N: Maintainable Resex Files
When you plan to make your project multi-language and you are nearing its completion it is not smart to put those resource strings on a .resex files and edit right from your IDE. Why? Simply because it is not maintainable and hard to track changes whenever you add new entries. Also, your translators... Read More...
15 January 2007
.NET: Redundant ToString() method
It is only when I used Resharper that I learned I have been redundantly calling ToString() method when concatenating other types with a string type and assign it into string variable. The code below work just fine despite different types involved in the expression. 1 int value1 = 100; 2 decimal value2... Read More...
Filed under: ,
05 January 2007
Dev't: Keep It Simple And Stupid (KISS) Principle
When was the last time you heard it from your boss telling you to just keep it simple and stupid. Stay with the baseline and no more. When I was working in an ISV, it bugs me almost everyday trying to simplify things and working out on features to be more and more usable in various types of users, from... Read More...
04 January 2007
ASP.NET: Avoid name collisions and data loss, keep those keys out of code-behind
If you have developed ASP.NET applications you might share the same sentiment of forgetting session keys, cache item keys and query string variables. It is very important that you document each of them outside your code to avoid name collisions and accidental data loss. Sometimes you will forget those... Read More...
Filed under: ,
04 January 2007
17 Things To Think About and Execute in 2007
2006 has been a very good year to me and as new challenges of 2007 is coming I would like share some my resolutions. Having this list is difficult than I thought, I tend to list some unrealistic expectations which I know migth just failed me on year-end. So I trimmed it down. IT/Software Development... Read More...