Imports System.Drawing
Imports System.Web.UI.WebControls
Imports System.Web.UI.HtmlControls


Public Class validation
    Inherits System.Web.UI.Page
    Protected WithEvents cmdSubmit As System.Web.UI.HtmlControls.HtmlInputButton
    Protected WithEvents RequiredFieldValidatortxtZip As System.Web.UI.WebControls.RequiredFieldValidator
    Protected WithEvents txtCity As System.Web.UI.WebControls.TextBox
    Protected WithEvents RequiredFieldValidatortxtAddress As System.Web.UI.WebControls.RequiredFieldValidator
    Protected WithEvents RequiredFieldValidatortxtCity As System.Web.UI.WebControls.RequiredFieldValidator
    Protected WithEvents txtZip As System.Web.UI.WebControls.TextBox
    Protected WithEvents txtFirstName As System.Web.UI.WebControls.TextBox
    Protected WithEvents txtLastName As System.Web.UI.WebControls.TextBox
    Protected WithEvents RequiredFieldValidatortxtLastName As System.Web.UI.WebControls.RequiredFieldValidator
    Protected WithEvents ddlState As System.Web.UI.WebControls.DropDownList
    Protected WithEvents RequiredFieldValidatortxtFirstName As System.Web.UI.WebControls.RequiredFieldValidator
    Protected WithEvents txtAddress As System.Web.UI.WebControls.TextBox
    
#Region " Web Forms Designer Generated Code "
    
    'CODEGEN: This procedure is required by the Web Form Designer
    'Do not modify it using the code editor.
    Private Sub InitializeComponent()

    End Sub

#End Region

    Protected Sub Page_Init(ByVal Sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
        'CODEGEN: This method call is required by the Web Form Designer
        'Do not modify it using the code editor.
        InitializeComponent()
    End Sub

    Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        If Page().IsPostBack And Page().IsValid Then
            Response().Redirect("validation2.aspx")
        Else
            'an error occurred, process accordingly
        End If
    End Sub

End Class
