title: Open a new web page on button click in C#, Visual Studio 2013
body: <p>I am using Microsoft Visual Studio Ultimate 2013 and coding in C#.</p>
  
  <p>I wish to open a new webpage, RegistrationForm.aspx (a webpage included within application) on a button click. I have searched a lot on the Internet but nothing useful turned up.</p>
  
  <p>This is my button.</p>
  
  <pre><code>&lt;button type="button" class="btn btn-primary" onclick="NavigateToSite" &gt;Search&lt;/button&gt;
  </code></pre>
  
  <p>The NavigateToSite function in the code-behind file is defined as follows:</p>
  
  <pre><code>protected void NavigateToSite(){
          System.Diagnostics.Process.Start("~/RegistrationForm");
      }
  </code></pre>
  
  <p>I also tried this</p>
  
  <pre><code>&lt;button type="button" class="btn btn-primary" onclick="window.show('~/RegistrationForm')" &gt;Search&lt;/button&gt;
  </code></pre>
  
  <p>Please help.</p>