March, 2006

  • How to debug JavaScript in Visual Studio

    Follow these 2 simple steps and you will be debugging JavaScript with ease. 1.    Clear the “disable script debugging” checkbox in Internet Explorer’s advanced properties. 2.    Add the keyword “debugger” somewhere within...
  • How to swap two strings

    using System; class SwappinStrings {     static void SwapStrings( ref string s1, ref string s2)     // The string parameter x is passed by reference.     // Any changes on parameters will affect the original...
  • ImageButton in DataGrid and DataGrid.ItemCommand Event

    I recently had an ImageButton in a DataGrid, and for whatever reason it wouldn’t fire the DataGrid.ItemCommand event.  After beating my head on the keyboard for an entire day, I finally found the problem. When you are binding the grid (or calling...