protected void ScanInputData() { string strErrorPage = "default.aspx?redirect=kioskshipping"; if (!InputValidation.LenVal(this.txtContRef.Text, 30)) { Response.Redirect(strErrorPage, true); } if (!InputValidation.LenVal(this.txtOrg.Text, 30)) { Response.Redirect(strErrorPage, true); } if (InputValidation.SpecialVal(this.txtOrg.Text)) { Response.Redirect(strErrorPage, true); } if (!InputValidation.LenVal(this.txtAddr1.Text, 30)) { Response.Redirect(strErrorPage, true); } if (!InputValidation.LenVal(this.txtAddr2.Text, 30)) { Response.Redirect(strErrorPage, true); } if (!InputValidation.LenVal(this.txtZip.Text, 5)) { Response.Redirect(strErrorPage, true); } if (!InputValidation.LenVal(this.txtZipPlus4.Value, 4)) { Response.Redirect(strErrorPage, true); } if (!InputValidation.LenVal(this.txtPostal.Text, 10)) { Response.Redirect(strErrorPage, true); } if (this.selCity.SelectedValue != "") { if (!InputValidation.ContentVal(this.selCity.SelectedValue, @"^[0-9a-zA-Z-@.'_#,()/]")) { Response.Redirect(strErrorPage, true); } } if (!InputValidation.LenVal(this.txtCity.Value, 20)) { Response.Redirect(strErrorPage, true); } if (Session["KIOSK_ShipLocation"] != null) { if (Session["KIOSK_ShipLocation"].ToString() == "Domestic") { if (!InputValidation.LenVal(this.txtState.Text, 2)) { Response.Redirect(strErrorPage, true); } } else { if (!InputValidation.LenVal(this.txtState.Text, 30)) { Response.Redirect(strErrorPage, true); } } } if (!InputValidation.LenVal(this.txtEMail.Value, 40)) { Response.Redirect(strErrorPage, true); } if (!InputValidation.LenVal(this.txtPhone.Value, 30)) { Response.Redirect(strErrorPage, true); } if (!InputValidation.LenVal(this.txtPhone2.Value, 30)) { Response.Redirect(strErrorPage, true); } }