title: How to create a dynamic ASP:ImageMap
body: <p>I want to create an ASP:ImageMap with a dynamic number of hot spots. I tried the code below, but it complains about having a repeater nested inside an image map. Any ideas on how to do this?</p>
  
  <pre><code>    &lt;asp:ImageMap ID="imgMap" runat="server" ImageUrl="~/circles.png" 
                    HotSpotMode="PostBack"&gt;
         &lt;asp:Repeater runat="server" id="repeat" DataSource=&lt;%#circles %&gt;&gt;
              &lt;asp:CircleHotSpot PostBackValue="&lt;%#name %&gt;" 
                                 Radius="&lt;%#r %&gt;" 
                                 X="&lt;%#x %&gt;" 
                                 Y="&lt;%#y %&gt;" /&gt;
          &lt;/asp:Repeater&gt;
      &lt;/asp:ImageMap&gt; 
  </code></pre>
  
  <p>(Please ignore problems with databinding. I'll solve those later.)</p>