I use a jQuery popup window to show a new page with a parameter in the query string.
<script language="javascript" type="text/javascript">
function ShowProfile(clickedItem) {
$.fn.colorbox({ html: '<iframe SCROLLING="Yes" frameborder="0" src="SiteVP.aspx?siteid="' + clickedItem + ' width="999" height="550" />', width: "999px", height: "550px", close: 'Continue' });
}
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
<td style="width:80%">
<a href="javascript:ShowProfile('<%#Eval("Site").ToString().Replace("'", "\'")%>')"> <%#Eval("Site") %>
</a>
</td>
Can't for the life of me figure out what could possibly be wrong with such a simple javascript call. Please help.