Greybox GB_showCenter is not loading the window in asp.net
<p>we are using grey box in some of our old projects. we have defined the code like this.</p>

<pre><code>   &lt;body&gt;
   &lt;form id="form1" runat="server"&gt;
   &lt;ajaxToolkit:ToolkitScriptManager runat="Server" EnablePartialRendering="true" EnableScriptGlobalization="true"
    EnableScriptLocalization="true" EnablePageMethods="true" CombineScripts="false"
    ID="ToolkitScriptManager1"&gt;
  &lt;/ajaxToolkit:ToolkitScriptManager&gt;

    &lt;div class="wrapper"&gt;
        &lt;div class="maincontent"&gt;
            &lt;asp:ContentPlaceHolder ID="CpMain" runat="server"&gt;
            &lt;/asp:ContentPlaceHolder&gt;
        &lt;/div&gt; 
&lt;/div&gt;
&lt;/form&gt;
&lt;script type="text/javascript"&gt;
    var GB_ROOT_DIR = "/gb/";
&lt;/script&gt;
&lt;script type="text/javascript" src="/gb/AJS.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" src="/gb/AJS_fx.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" src="/gb/gb_scripts.js"&gt;&lt;/script&gt; 
&lt;/body&gt;
</code></pre>

<p>and the child page we have like this.
  in a asp:gridview in itemtemplate we are binding like this.</p>

<pre><code>   &lt;asp:HyperLink ID="hypPreview" ImageUrl="~/Images/s.png" onfocus="this.blur();" ToolTip="Preview Survey"                                                                                    Text="Preview" runat="server"&gt;&lt;/asp:HyperLink&gt;
</code></pre>

<p>in code behind while binding the data we are binding like this.</p>

<pre><code>  string SiteUrl1 = ConfigurationManager.AppSettings["SiteUrl"].ToString();
  SiteUrl1 = SiteUrl1 + "/Surveys/sr/ts.aspx?g=" + DataBinder.Eval(e.Row.DataItem, "SurveyGUID").ToString() + "&amp;cig=preview";
  hypPreview.Attributes.Add("onclick", "GB_showCenter('Preview', '" + SiteUrl1 + "', 600, 800);return false;");
</code></pre>

<p>in the browser it is rendering as </p>

<pre><code>  &lt;a id="CpMain_gvComposeCampaign_hypPreview_0" title="Preview Survey" onfocus="this.blur();" onclick="GB_showCenter('Preview', 'http://dev.DMD.com/Surveys/sr/ts.aspx?g=052A3DD3-AE6C-41D6-95C1-FD299E53BC80&amp;amp;cig=preview', 600, 800);return false;" style="cursor:pointer;"&gt;&lt;img title="Preview Survey" src="../Images/s.png" alt="Preview"&gt;&lt;/a&gt;
</code></pre>

<p>but when i click on the button its not showing the window. what might be the issue?
how do i debug it.</p>

<p>Thanks.</p>
