Archive for the ‘Coding’ Category.

A Simple TBB Program: TBB Prime

I have been playing around with Intel’s Threading Building Block for a while and have started to really appreciate its simplicity and elegance: Instead of thinking in threads and thread synchronizations, one can just simply concentrate on the problem on the hand. Continue reading ‘A Simple TBB Program: TBB Prime’ »

A Line of Code Could Bring Visual Studio .Net Down to Its Knees

It seems at least to me that as more bells and whistles were added to each new release of Microsoft’s products, the qualities of which have been deteriorating. Continue reading ‘A Line of Code Could Bring Visual Studio .Net Down to Its Knees’ »

Develop TBB Using KDevelop and Code::Blocks

I have been playing around with Intel’s open source TBB (Threading Building Block) recently. Continue reading ‘Develop TBB Using KDevelop and Code::Blocks’ »

Event Logging Using Reflection

When exceptions occur during the execution of an application, the stack trace contains the detailed location of where the exception is originated. Continue reading ‘Event Logging Using Reflection’ »

Could not Find File ‘Microsoft.Windows.CommonLanguageRuntime’ Error

I ran into this weird compile time error the other day, and as it turned out, this is due to the limitation of Visual Studio 2005 deployment capabilities.  Continue reading ‘Could not Find File ‘Microsoft.Windows.CommonLanguageRuntime’ Error’ »

Unexpected Event Behavior

Typically, there is rarely a need to change a control’s ID. However, this practice is sometimes useful when debugging a custom control, partiularly one that contains dynamically generated controls. Continue reading ‘Unexpected Event Behavior’ »

Certain IIS Settings Cause Websetup Failure

I ran into an interesting problem with the Web Setup project in ASP.Net 2.0 last Friday. Continue reading ‘Certain IIS Settings Cause Websetup Failure’ »

A Strange Databinding Issue

It seems that the DropDownList control in ASP.Net 2.0 really has some issues. Besides the one I mentioned in an earlier post, I recently ran into another annoying problem. Continue reading ‘A Strange Databinding Issue’ »

A Stange Issue With Global.asax

I always use Global.asax for centralized error handling in my ASP.Net applications and typically it works great. Continue reading ‘A Stange Issue With Global.asax’ »

Multiple Row Selection With GridView

We often need the capability of selecting multiple rows from a grid, unfortunately the GridView component in ASP.Net 2.0 does not offer an out-of-box support for such functionality. Continue reading ‘Multiple Row Selection With GridView’ »

Reflection and Case Sensitivity

Reflection is case sensitive by default, which comes at no surprise to most C# developers. Continue reading ‘Reflection and Case Sensitivity’ »

Enable/Disable Controls using ControlCollection

In a role based application, it is often required that certain controls on the UI form be enabled and disabled based on user’s security credentials. Continue reading ‘Enable/Disable Controls using ControlCollection’ »

JScript Exception in AJAX Control Toolkit

I ran across an exception "Microsoft JScript runtime error: ‘this._postBackSettings.async’ is null or not an object" the other day while writing some AJAX code with .Net AJAX Extensions for .Net framework 2.0. Continue reading ‘JScript Exception in AJAX Control Toolkit’ »

The Elusive File.Copy

A while ago, I discussed some interesting behavior of File.Exist function in .Net. Recently I found out that File.Copy is just as elusive when UNC is involved. Continue reading ‘The Elusive File.Copy’ »

Same Method, Different Speed

I came across something rather interesting the other day when trying to determine what sorting algorithms .Net Framework uses in its list class: The built-in  sorting method runs much faster than the reverse-engineered and then compiled code, even though in theory the code being executed is identical. Continue reading ‘Same Method, Different Speed’ »