title: ASP.NET C# use of ClientScript.RegisterStartupScript pass parameter
body: <p>I have the following code which should call a function called ShowPopup in my client side script but for reason, when I call this function nothing happens. </p>
  
  <pre><code>  string pg = "Test";
    ClientScript.RegisterStartupScript(this.GetType(), "Popup", "ShowPopup(pg);", true);
  </code></pre>
  
  <p>If I do the following:</p>
  
  <pre><code>ClientScript.RegisterStartupScript(
                     this.GetType(), "Popup", "ShowPopup('Test');", true);
  </code></pre>
  
  <p>it works fine. It does show up in the popup. Any idea what I may be doing wrong. </p>