Passing javascript parameter from codebehind error
<p>I use this script to call a javascript from codebehind.</p>

<pre><code>ClientScript.RegisterStartupScript(this.GetType(), "Exist", "&lt;script language='javascript'&gt;ConfirmRedirect('" + url + "','" + msg + "');&lt;/script&gt;", true);
</code></pre>

<p>and my javascript code is</p>

<pre><code>function ConfirmRedirect(url,msg)
    {    

        alert(msg);
        window.location.href = url;
    }
</code></pre>

<p>Am getting ')' expected error.
What am missing here? If am calling javascript without paramters then it is working.</p>
