Sending querystring variable to new popup window
<p>My JavaScript code is this:</p>

<pre><code>var newwindow;
    function poptastic(url) {
     newwindow = window.open(url, 'name', 'height=400,width=200');
    if (window.focus) { newwindow.focus() }
    }
</code></pre>

<p>And my C# code:</p>

<pre><code> foreach (GridViewRow row in GvComments.Rows)
            {
                Button btnReplay = (Button)row.FindControl("btnReplay");
                string url = "javascript:poptastic('Configuration.aspx?id=" + e.CommandArgument + "')";
                btnReplay.Attributes.Add("onclick", url);
            }
</code></pre>

<p>I think the C# code has problem, because when I use this JavaScript code in a tag it works, but in <code>attribute.add</code> not working.</p>
