title: ASP.NET VB, when button is press, how can I have it go to another form instad of always returing to the same form?
body: <p>I would like to have a website with string 4 forms together.  Right now I cannot figure out how to get asp to go to another page, always returns to the same page.</p>
  
  <p>I would like it so when the enter button is press the asp vb code would check to make sure the data is valid.  If it is not valid it would return to the same form. else, go to the next form </p>
  
  <p>Right now I have a test project that has a text box and a button.  If you type yes I would like it to go to another form, else stay on same form</p>
  
  <p>This is the vb code I have</p>
  
  <pre><code>Partial Class firstform
      Inherits System.Web.UI.Page
  
      Protected Sub Button1_Click(sender As Object, e As System.EventArgs) Handles Button1.Click
          '' proccess the form check for errors
  
          If (nextpage.Text = "yes") Then
              '' go to next form
          End If
  
          '' return tp pre form secondform.aspx
      End Sub
  End Class
  </code></pre>