What's The Error In this code
<p>this code works fine in php to generate the custom scripts generators</p>

<pre><code> &lt;?php

    $arrs = array("script.js","ui.js","jform.js");


    foreach ($arrs as $var)
    {
    ?&gt;


&lt;script type="text/javascript" src="&lt;?php echo $var ?&gt;" &gt;
&lt;/script&gt;

&lt;?php

    }


    ?&gt;
</code></pre>

<p>this not compiling even whts the probem in my code the aspx but its not working</p>

<pre><code>&lt;%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %&gt;

&lt;%              IList&lt;string&gt; list;

list = new List&lt;string&gt;();

foreach (string lst in list)
{ 
%&gt;
&lt;script type="text/javascript" src="&lt;%  lst  %&gt;"   /&gt;

&lt;%  



 }
     %&gt;
</code></pre>
