title: Calling javascript from code behind
body: <p>I have a c# asp.net 3.5 app
  I am trying to open a window from code behind after a certain event. I have this but its not working and there are no errors in firebug</p>
  
  <pre><code>protected override void OnPreRender(EventArgs e) {
              base.OnPreRender(e);
              if (openCredentialsWindow) {
                  if (openCredentialsWindow_ClientId != Guid.Empty) {
                      this.Page.ClientScript.RegisterStartupScript(this.GetType(), "openCredentials", string.Format("radopen('Services.aspx?clientId={0}, Window_Services')", openCredentialsWindow_ClientId.ToString()));
                  }
              }
          }
  </code></pre>
  
  <p>Any ideas?</p>