Javascript Call from ASP.NET GridView - Parameter not getting passed -
i use jquery popup window show new page parameter in 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 fine, can't "siteid" value passed. on new page siteid "". code in asp.net
<td style="width:80%"> <a href="javascript:showprofile('<%#eval("site").tostring().replace("'", "\'")%>')"> <%#eval("site") %> </a> </td>
can't life of me figure out possibly wrong such simple javascript call. please help.
looks
src="sitevp.aspx?siteid="' + clickeditem + '
should be
src="sitevp.aspx?siteid=' + clickeditem + '"
note how single , double quotes moved around
Comments
Post a Comment