title: How to close rad window in c# on button Click using JS
body: <p>i have tried to close window(radWindow) using asp.net C#, but error on java script function is that 'object required' ,How can i solve this?</p>
  
  <p>My java script and asp.net code is</p>
  
  <pre><code> &lt;script type="text/JavaScript"&gt;
        function Close() {
             GetRadWindow().Close();
         }
  
    &lt;/script&gt;
  </code></pre>
  
  <p>Asp.net code is</p>
  
  <pre><code> &lt;asp:Button ID="btnSubmit" runat="server" Text="Submit Request" Height="27px" OnClick= "btnSubmit_Click" OnClientClick="Close();return false;" /&gt;
  </code></pre>
  
  <p>Optional try  using C# for same operation as</p>
  
  <p>C# code for button is</p>
  
  <pre><code> protected void btnSubmit_Click(object sender, EventArgs e)
   {
      //Server code
     ScriptManager.RegisterStartupScript(this,GetType(), "close", "Close();", true);
   }
  </code></pre>