title: open a new page in the same window
body: <p>I am still learning ASP.NET and I am trying to open a page in the same window. I only succeeded in opening the page in another tab, but I want the current window to change to the next.</p>
  
  <p>this is my code.</p>
  
  <pre><code>&lt;asp:Button ID="buttonRegistreerHier" runat="server"
              CommandName="MoveNext" Text="Registreer hier!!" 
              OnClick="buttonRegistreerHier_Click"
              OnClientClick="window.open('RegistratieForm.aspx', 'OtherPage');" 
              PostBackUrl="~/RegistratieForm.aspx" /&gt;
  </code></pre>