Reviving Metabuilder’s DualList

Sun, May 6, 2007

Tech Tips

Update: updated their controls for Net 2.0!

Metabuilders had a free ASP.Net web control (with source) called DualList (or DynamicListBox) that worked really well in ASP.Net 1.1. I wanted to use it in 2.0 but there are some minor fixes needed in the code. Here is summary of the fixes I found here and here.

Combining this control with Telerik‘s AjaxManager is slick.

Steps to Convert DualList to ASP.Net 2.0

  1. First download the source from the metabuilders web site. Open the solution in VS 2005 and it will start the conversion wizard. When it asks about not finding the source code bindings, choose to remove them.
  2. Once the conversion is finished, the project will not compile. Open the AssemblyInfo.cs file and REMOVE:

    [assembly: AssemblyDelaySign(false)]
    [assembly: AssemblyKeyFile(“”)]
    [assembly: AssemblyKeyName(“”)]

  3. Now open DynamicListBoxResourceHandler.cs, REPLACE:

    if ( context.Cache[cacheKey] == null ) {
    context.Cache.Insert(cacheKey, DetermineIsRegistered());
    return (Boolean)context.Cache[cacheKey];


    bool bRet=false;
    //fixed cache delay, do not rely on cache available immediately after insert
    if (context.Cache[cacheKey] == null)
    bRet = DetermineIsRegistered();
    context.Cache.Insert(cacheKey, bRet);


    bRet = (Boolean)context.Cache[cacheKey];

    return bRet;

  4. In DynamicListBoxResourceHandler.cs again, REPLACE:

    Object handlerMap = System.Web.HttpContext.GetAppConfig(“system.web/httpHandlers”);


    Object handlerMap = System.Web.HttpContext.GetAppConfig(“httpHandlers”);

  5. Finally, in DynamicListBox.js, REPLACE:

    list.Tracker = DynamicListBox_FindControl( + “:itemTracker” );


    list.Tracker = DynamicListBox_FindControl( + “$itemTracker” );

You should be all set then.

Bookmark and Share

7 Responses to “Reviving Metabuilder’s DualList”

  1. Casper Says:

    Thanks, good work.

  2. Csgear Says:

    Great!Could you please send me a copy of working souce code?

  3. Pansy Says:

    Hi you,
    I can’t download source and dll of DynamicListBox from . I don’t know what the problems the site has. Would you mind sending me its source? I’ll try your guide because I also need a dual list box control for .NET 2.0

  4. Nick H Says:

    The change for DynamicListBox.js isn’t working for me. After doing some testing, it would appear my controls are named with a : not a $. With the $, I get a JS error (the find fails) – putting the : back in works fine.


  5. eniac Says:

    this article is titled reviving the duallist yet the subject matter is in regards to the dynamic list.

  6. eniac Says:

    oops the duallist relies on dynamiclist…my mistake

  7. Niebezpieczna metoda Says:

    I must express some thanks to you just for rescuing me from this type of incident. Right after surfing through the the web and finding notions that were not helpful, I assumed my life was done. Living minus the strategies to the difficulties you have fixed by way of your good article content is a critical case, and those which could have adversely damaged my career if I had not noticed your website. Your primary talents and kindness in playing with all the things was invaluable. I don’t know what I would’ve done if I hadn’t encountered such a subject like this. I can also now look forward to my future. Thanks for your time so much for your impressive and results-oriented help. I will not hesitate to refer your site to any person who desires guide on this subject matter.