title: Dynamically open a radwindow defined in Javascript
body: <p><strong>Objective:-</strong> From the server-side, I need to open a radwindow(defined in JavaScript of the aspx page) automatically on an IF condition.</p>
  
  <p><strong>Code used:-</strong></p>
  
  <p>In aspx page, I defined the radwindow as:-</p>
  
  <pre><code>&lt;telerik:RadWindowManager Skin="WBDA" ID="AssetPreviewManager" Modal="true" 
  EnableEmbeddedSkins="false" runat="server"  DestroyOnClose="true" Behavior="Close" 
  style="z-index:8000"&gt;
      &lt;Windows&gt;   
          &lt;telerik:RadWindow ID="DisclaimerAlertWindow" runat="server" Width="720px"    Height="220px" 
  Modal="true" visibleStatusbar="false" VisibleTitlebar="false" keepInScreenBounds="true" title="Sourav"&gt;                                            
        &lt;/telerik:RadWindow&gt;  
     &lt;/Windows&gt;  
  &lt;/telerik:RadWindowManager&gt;
  </code></pre>
  
  <p>In JavaScript, a function is defined for opening the radwindow:-</p>
  
  <pre><code>function openRadWindow() 
       { 
          var oWnd = radopen('DisclaimerAlert.aspx, 'DisclaimerAlertWindow'); 
          oWnd.set_title('Access Denied !');  
          oWnd.Center(); 
          return false; 
       }
  </code></pre>
  
  <p>So on the server side of the aspx page, In the Page Load event an IF condition is checked and then I'm calling 'openRadWindow()' function as:-</p>
  
  <pre><code>protected void Page_Load(object sender, EventArgs e)
  {
  if (fieldValue == "False") 
  { 
   string xyz = "&lt;script type='text/javascript' lang='Javascript'&gt;openRadWindow();&lt;/script&gt;"; 
   ClientScript.RegisterStartupScript(this.GetType(), "Window", xyz); 
  }
  }
  </code></pre>
  
  <p><strong>Problem:-</strong></p>
  
  <p>But on running this, these JavaScript errors are coming:-</p>
  
  <ol>
  <li>Object doesn't support this property or method.</li>
  <li>'undefined' is null or not an object</li>
  </ol>
  
  <p>Please help how to achieve my objective. I am totally stuck.</p>