title: RadWindow: Opening windows from C#
body: <p>Need to open a webpage in a radWindow from a button click event. Attempted to do this from client side but, it appears and then immediately disappears. I Think the button click is causing a postback to the server... Therefore, I'm currently attempting to solve this issue with server side code (C#) posted below. </p>
  
  <p>Problem: Need to open rad windows without adding them to the window collection or remove them from the window collection on close. They aren't being removed from the window collection on closing of the rad window. This results in the same window opening for the number of times the new button is pressed. First click opens one window, the second time the new button is clicked two windows open, etc... Any ideas?</p>
  
  <p>C# - Multiple pages opening</p>
  
  <pre><code>    RadWindow newWindow = new RadWindow();
      newWindow.NavigateUrl = "WebPage.aspx";
      newWindow.Top = Unit.Pixel(22);
      newWindow.VisibleOnPageLoad = true;
      newWindow.Modal = true;
      newWindow.Left = Unit.Pixel(0);
      newWindow.Height = 530;
      newWindow.Width = 1000;
      winMgr.Windows.Add(newWindow);
  </code></pre>
  
  <p>JavaScript - Post Back issue? Page opens and immediately disappears. </p>
  
  <pre><code>    var oManager = '&lt;%=winMgr.ClientID %&gt;';
      var oManager = window.radopen("WebPage.aspx", null);
      oManager.setSize(1000, 530); //Width, Height
      oManager.center();
      oManager.SetActive();
  </code></pre>
  
  <p>Thanks for your help!</p>