ASP.NET · C# · CodeProject · Dotnet · Javascript · Jquery

ASP.NET Treeview Node Expand-Collapse with Node click: Client Side JQuery, Javascript

Dear Reader, I had to implement a custom client side node click along with Tree expand and collapse feature working. There was no straight solution to implement ASP.NET Treeview expand and collapse in pure Javascript or JQuery directly. With googling for almost half of the day, it turned out noting. So i began to look… Continue reading ASP.NET Treeview Node Expand-Collapse with Node click: Client Side JQuery, Javascript

C# · CodeProject · Dotnet

Decision matrix implementation in C#

Dear Reader, Yesterday i faced a problem where the combinations possibilities were many and i had to implement code for this problem. Obvious solution is to implement If – else ladder. But i absolute hate this solution because the combination were around 5C3. The combination data was about behavior aspect of a scenario. Next solution… Continue reading Decision matrix implementation in C#

C# · CodeProject · Dotnet

Convert 3 digit number to words (TIP)

Dear Reader, Today i was wandering through Codeproject as my daily routine and found one tip about Converting numbers to word. I actually got interest in it and began to read through and i was surprised how easy code the author has written. As well as i gone through the comments section. People have expressed… Continue reading Convert 3 digit number to words (TIP)

C# · CodeProject · Dotnet

Refactoring Hooking and Unhooking events TIP

Dear Reader, Today i was fixing a bug w.r.t event handling. So as part of this there were couple of forms (classes basically) which were trying to hook to an KeyDown events and unhooking upon disposed. Basically the requirement is, for every customized control in the forms/panel, this keydown event should be hooked. So no… Continue reading Refactoring Hooking and Unhooking events TIP

C# · CodeProject · Dotnet

Static in generics

Dear Reader, Although this topic is quite common, but still i see here and there folks getting confused about the behavior of having a static members in the generic type. Today i saw another question on stackoverflow about the same. So i thought i shall write a small blog post about the same. Normally we… Continue reading Static in generics

C# · CodeProject · Dotnet

String Concatenation vs Memory Allocation in C# .NET

Dear Reader, I would like to bring into your attention an old article written on this topic. This article explains alot about strings concatenation and does very good performance analysis. Here is a glimpse about this article: Over the years, plenty has been written about string performance, lots of comparisons between String.Concat and StringBuilder. Today… Continue reading String Concatenation vs Memory Allocation in C# .NET

C# · CodeProject · Dotnet

Internals of Conversion styles in .NET

Dear Reader, In this post i would like to share some things about Conversion styles in .NET i learned few days back. Basically in this case I am talking about casting any numeric value to an equivalent char type. There are three ways one can convert one type to another, in this case numeric to… Continue reading Internals of Conversion styles in .NET