I was looking through some code the other day and ran across something that looked remotely familiar. It was the null coalescing (??) operator. I had read about this operator, but never used it. It was introduced with the .NET 2.0 Framework. The null coalescing operator basically checks to see if a value is null and if so returns an alternate value. Below is a simple example. C# Code Listing using System; namespace...
Monday, September 29, 2008
Friday, September 26, 2008
September 26, 2008
The jQuery Javascript library has gotten a significant amount of attention from Microsoft developers this year in large part to its nice fit with the new ASP.NET MVC framework. I myself was totally new to jQuery and I started using it with MVC because I wanted to see what the big deal was. Sure enough, I became a true believer like many others. And I found myself suddenly having "JavaScript envy" because I couldn't do all the...
September 26, 2008
When it comes to proper usage of CSS and HTML layout, I have to admit I’ve been somewhat slow to get up to speed. Although I’ve been fully aware of what ‘you’re supposed to be doing’ it’s been quite a different story from what I’ve actually been doing. Part of it is that a lot of the apps I work on are based on older code that didn’t pay close attention to CSS based layout and so it’s often hard to retrofit those apps. But slowly and gradually...
Wednesday, September 24, 2008
September 24, 2008
This is my first shot at creating add-ons for Firefox. This add-on can decode and show viewstate contents of an *.aspx page. Once you intall this add-on, it shows up a 'Show Viewstate' item in context menu of Firefox. When this menuitem is clicked, a popup comes up showing the viewstate details. There are a couple of things I want to make clear here: This add-on does NOT decrypt viewstate. It means it does not work on encrypted viewstate....
Friday, September 19, 2008
September 19, 2008

In Asp.Net apps, we are used to storing data in the current context. Objects that are specific to the currently executing Request, like a User object retrieved a database, or another object that you want to make globally available without requiring multiple database trips, can benefit from this. But what about this situation in non-web applications? ...
Monday, September 15, 2008
September 15, 2008
For a better user experience you would your users to see please wait message while browser render the page completely. Here is the one solution to the same problem. Let's create a master page called Site.master and a web content form as demo.aspx. 1: Loading Demo Demo.aspx is the web content form which fetches data from a database. 1: <!-- Code to fetch data from a database --> To show loading...
Tuesday, September 9, 2008
September 09, 2008
Earlier this year I posted a port of the CSS minifier from YUI Compressor, Yahoo's java-based library that reduces CSS and JavaScript resources with a measurable advantage over other similar tools. I made plans to port the JavaScript compressor as well, which is known for its ability to rename inner function variables, but could not find the time, as the task would involve porting the entire JavaScript parser used to decompile the JavaScript and...