Dynamically Add Images to jQuery plugin?
<p>I have a plugin which I need to bind data to it from the code behind, dynamically.
I can use this:</p>

<pre><code>var a = [{"image":"../../1.jpg","caption":"","title":"Image 1"},
{"image":"../../2.jpg","caption":"","title":"Image 2"},
{"image":"../../3.jpg","caption":"","title":"Image 3"},
        ];
$(".pikachoose").PikaChoose({ data: a });
</code></pre>

<p>but how can I create this VAR in code behind?
there I can loop as many times as I need and make as many images that i need but here no.</p>

<p>I also tried </p>

<pre><code>&lt;asp:DataList ID="lstThumbs" runat="server" RepeatDirection="Horizontal"&gt;
     &lt;ItemTemplate&gt;
         &lt;div class="thumbs"&gt;
             &lt;a href=""&gt;
               &lt;img id="imgbtnThumb" src='&lt;%# Container.DataItem %&gt;' /&gt;&lt;/a&gt;                         
         &lt;/div&gt;
     &lt;/ItemTemplate&gt;
 &lt;/asp:DataList&gt;&lt;/li&gt;
</code></pre>

<p>but it doesn't show the images
i dont know why?!</p>

<p>can someone please help me?</p>
