title: Passing the description text to jquery image slider from database
body: <p>I am using a jquery image slider , I have figured out , how to pass the images from database to my image slider , but i m having problems passing the description text to each image because the image formation is in a script and i dont know how to pass the eval("description") to the script. Below is the code:</p>
  
  <pre><code> &lt;script type="text/javascript"&gt;
                if (!window.slider) var slider = {};
                slider.data = [{ "id": "slide-img-1", "client": "nature beauty", "desc": "With up to 30 used caravans for you to choose from, you will soon be able to hit the open road...&lt;br /&gt; Come along and browse at your leisure or take a look at a selection of our current stock." }, { "id": "slide-img-2", "client": "nature beauty", "desc": "" }, { "id": "slide-img-3", "client": "nature beauty", "desc": "add your description here" }, { "id": "slide-img-4", "client": "nature beauty", "desc": "add your description here" }, { "id": "slide-img-5", "client": "nature beauty", "desc": "add your description here" }, { "id": "slide-img-6", "client": "nature beauty", "desc": "add your description here"}];
  </code></pre>
  
  <p> </p>
  
  <p>so i want to pass something like "desc":'&lt;%eval("description")%>'</p>
  
  <pre><code>&lt;div id="slide-runner"&gt; 
  
  &lt;asp:Repeater ID="rptJquery" runat="server"&gt;
  
  &lt;ItemTemplate&gt;
   &lt;a href=""&gt;
  &lt;img ID='&lt;%#Eval("slideshowID") %&gt;' src='&lt;%#String.Format("/images/slideshow/{0}", Eval("imgURL"))%&gt;' class="slide"/&gt;
  &lt;/a&gt; 
  &lt;/ItemTemplate&gt;
  &lt;/asp:Repeater&gt;
  &lt;/div&gt;
  </code></pre>