How to get a server-side variable into JavaScript
<p>I want to pass a value to this JavaScript from the database (using datareader in asp.net(C#)).</p>

<p>The script is from <a href="http://www.dynamicdrive.com/dynamicindex14/leftrightslide.htm" rel="nofollow">http://www.dynamicdrive.com/dynamicindex14/leftrightslide.htm</a></p>

<p>I need to set a pass value in the below line:</p>

<pre><code>leftrightslide[cnt] = '&lt;a href="MYWEBPAGE"&gt;&lt;img src="MYIMAGE FRM DATABASE.gif" border=1&gt;&lt;/a&gt;';
cnt++;
</code></pre>

<p>So the value of the datareader would be passed into the JavaScript array.</p>
