Can you add an imagemap control to the page rather than writing it out manually with a createImageMap function? Alternatively, if you need the function then could you return the HTML into a string and place that in a label or literalcontrol? Using one of those two techniques should help.