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

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -