Server-side code working with JavaScript using ASP.NET
<p>I am trying to get a server side code working with JavaScript. What am I doing wrong?</p>

<pre><code>function openUp(name)
{
    document.getElementById(name).style.display =  &lt;%if (Request.ServerVariables["HTTP_USER_AGENT"].Contains("FireFox"))Then %&gt;
        response.write('table-row'); &lt;%else%&gt; response.write('block');
}
</code></pre>
