Publish / Subscribe Events in JavaScript

Some situations may require developers to call multiple methods on occurrence of an event. When we do know what all methods needs to be called before hand, then we could hard code ‘the set of methods’ that needs to be called. However, what if we do not know ‘the set of methods’ upfront?

In C# we may accomplish this using Multi-cast Delegate, Observer Pattern, a subset of Publish/Subscribe Pattern. So, how are we going to deal with this issue in JavaScript? Read More…

Posted in JavaScript at August 29th, 2010. No Comments.

Ektron: The Controls collection cannot be modified …

For the past couple of hours I have been banging my head and pulling my left over few strands of hair to figure out what’s wrong with my code causing the below exception.


The Controls collection cannot be modified because the control contains code blocks (i.e. < % ... %>)

I finally found out the solution from a least expected settings. Read More…

Posted in .NET, Content Management, Ektron at October 19th, 2009. No Comments.

Login failed for user ‘IIS APPPOOL\DefaultAppPool’.[EkSite->GetSiteVariables()]

As I have mentioned earlier, I started playing around with the Ektron 400 CMS.NET content management system. Soon after I installed starter kit websites, I got the below error.

Login failed for user 'IIS APPPOOL\DefaultAppPool'.[EkSite->GetSiteVariables()]

My system configuration is Windows 7 x64, IIS 7, .NET 3.5, SQL 2008 (with NT Authentication) and Ektron 7.6.6. If you got that error, this one could be your fix. Read More…

Posted in .NET, Content Management, Ektron at October 18th, 2009. 1 Comment.

Moved to Windows 7 and I like the upgrade

For the past two and half years I have been using Open Suse as my OS except for playing FPS games and / or while working with some .NET stuff. Unlike Vista, I heard good reviews from my colleagues about Windows 7 and thought of playing around with it using subscription license. Read More…

Posted in General, Softwares at October 12th, 2009. No Comments.

How to set property of an object created using Reflection?

The VB.NET to C#.NET converter tool from Developer Fusion is awesome! It convert code from VB to C# or vice versa and primarily used by enthusiasts to learn the other language syntax. The tool does a great deal of work in trans-coding. However, not every thing is translated appropriately and you may have to clean up a little bit. Here is an example of issues I faced while using Reflection. Read More…

Posted in .NET, Others, Reflection, Reviews at August 7th, 2009. No Comments.