Unexpected Event Behavior

May 3rd, 2008 by kwong

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.
Read more »

Posted in Software | No Comments »

Certain IIS Settings Cause Websetup Failure

March 15th, 2008 by kwong

I ran into an interesting problem with the Web Setup project in ASP.Net 2.0 last Friday.
Read more »

Posted in Software | No Comments »

A Strange Databinding Issue

March 8th, 2008 by kwong

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.
Read more »

Posted in Software | 1 Comment »

A Stange Issue With Global.asax

February 18th, 2008 by kwong

I always use Global.asax for centralized error handling in my ASP.Net applications and typically it works great.
Read more »

Posted in Miscellaneous, Software | No Comments »

Multiple Row Selection With GridView

February 10th, 2008 by kwong

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.
Read more »

Posted in Software | No Comments »

Reflection and Case Sensitivity

February 3rd, 2008 by kwong

Reflection is case sensitive by default, which comes at no surprise to most C# developers.
Read more »

Posted in Software | No Comments »

Enable/Disable Controls using ControlCollection

January 25th, 2008 by kwong

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.
Read more »

Posted in Software | No Comments »

JScript Exception in AJAX Control Toolkit

January 21st, 2008 by kwong

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.
Read more »

Posted in Software | 6 Comments »

The Elusive File.Copy

January 11th, 2008 by kwong

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.
Read more »

Posted in Miscellaneous, Software | No Comments »

Same Method, Different Speed

December 31st, 2007 by kwong

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.
Read more »

Posted in Software | No Comments »

« Previous Entries