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.
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
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
This is the vb code I have
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
You could simply
Reponse.Redirectto your next page.Or you could use the Wizard Control
MSDN: Wizard Web Server Control Overview