Javascript Call from ASP.NET GridView - Parameter not getting passed
<p>I use a jQuery popup window to show a new page with a parameter in the query string.</p>

<pre><code> &lt;script language="javascript" type="text/javascript"&gt;
        function ShowProfile(clickedItem) {
            $.fn.colorbox({ html: '&lt;iframe SCROLLING="Yes"  frameborder="0" src="SiteVP.aspx?siteid="' + clickedItem +  ' width="999" height="550" /&gt;', width: "999px", height: "550px", close: 'Continue' });
        }
</code></pre>

<p>The popup window works just fine, but can't get "siteid" value to be passed. On the new page siteid is "". This is the code in ASP.NET</p>

<pre><code>&lt;td style="width:80%"&gt;
      &lt;a href="javascript:ShowProfile('&lt;%#Eval("Site").ToString().Replace("'",    "\'")%&gt;')"&gt; &lt;%#Eval("Site") %&gt;
&lt;/a&gt;
&lt;/td&gt;
</code></pre>

<p>Can't for the life of me figure out what could possibly be wrong with such a simple javascript call. Please help.</p>
