how to incorporate a c# variable into parameters of javascript function
<p>I am trying to put a path kept in a string variable (named "ruta") into the parameters of the  <code>swfobject.embedSWF</code>funtion but I don't know how to incorporate a c# code into javascript code. Can someone help me please?? thanks!!!!!</p>

<pre><code>&lt;%TarjetaPL tarjetaPl = null;
string ruta = null;
if (Session[Constantes.TarjetaSeleccionada] != null)
{
tarjetaPl = new TarjetaPL((Tarjeta)Session[Constantes.TarjetaSeleccionada]);
ruta = "../../content/images/" + tarjetaPl.TipoDeTarjeta.Banner;
}%&gt;
&lt;script type="text/javascript"&gt;
         swfobject.embedSWF((HERE COMES THE PATH KEPT IN THE VARIABLE "ruta"), "flashBanner", "300", "120", "9.0.0");
&lt;/script&gt;
</code></pre>

<p>The problem is that the code doesn't even recognize the " &lt;% %> " tag to incorporate c# on it!</p>
