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? Continue reading

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. Continue reading

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. Continue reading

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. Continue reading