public bool validacionHTML(ref String _mensaje) { CtrlvalidaInyeccion valida = new CtrlvalidaInyeccion(); string mensaheFuncion = string.Empty; if (valida.htmlInyectionValida(this.txtEmail.Text.Trim(), ref mensaheFuncion, "Email", ref this.txtEmail)) { _mensaje = mensaheFuncion; return(false); } return(true); }
public bool validacionHTML(ref String _mensaje) { CtrlvalidaInyeccion valida = new CtrlvalidaInyeccion(); string mensaheFuncion = string.Empty; if (valida.htmlInyectionValida(this.txtUsuario.Text.Trim(), ref mensaheFuncion, "Clave Unica", ref this.txtUsuario)) { _mensaje = mensaheFuncion; return(false); } if (valida.htmlInyectionValida(this.txtContraseña.Text.Trim(), ref mensaheFuncion, "Nombre", ref this.txtContraseña)) { _mensaje = mensaheFuncion; return(false); } return(true); }
public bool validacionSQL(ref String _mensaje) { CtrlvalidaInyeccion valida = new CtrlvalidaInyeccion(); string mensaheFuncion = string.Empty; if (valida.SQLInyectionValida(this.txtClaveUnica.Text.Trim(), ref mensaheFuncion, "Clave Unica", ref this.txtClaveUnica)) { _mensaje = mensaheFuncion; return(false); } if (valida.SQLInyectionValida(this.txtNombre.Text.Trim(), ref mensaheFuncion, "Nombre", ref this.txtNombre)) { _mensaje = mensaheFuncion; return(false); } if (valida.SQLInyectionValida(this.txtAPaterno.Text.Trim(), ref mensaheFuncion, "Apellido paterno", ref this.txtAPaterno)) { _mensaje = mensaheFuncion; return(false); } if (valida.SQLInyectionValida(this.txtAMaterno.Text.Trim(), ref mensaheFuncion, "Apellido Materno", ref this.txtAMaterno)) { _mensaje = mensaheFuncion; return(false); } if (valida.SQLInyectionValida(this.txtAMaterno.Text.Trim(), ref mensaheFuncion, "Apellido Materno", ref this.txtAMaterno)) { _mensaje = mensaheFuncion; return(false); } if (valida.SQLInyectionValida(this.txtCalendar2.Text.Trim(), ref mensaheFuncion, "Dia", ref this.txtCalendar2)) { _mensaje = mensaheFuncion; return(false); } //if (valida.SQLInyectionValida(this.txtMes.Text.Trim(), ref mensaheFuncion, "Mes", ref this.txtMes)) //{ // _mensaje = mensaheFuncion; // return false; //} //if (valida.SQLInyectionValida(this.txtAnio.Text.Trim(), ref mensaheFuncion, "Año", ref this.txtAnio)) //{ // _mensaje = mensaheFuncion; // return false; //} if (valida.SQLInyectionValida(this.txtNumeroHermanos.Text.Trim(), ref mensaheFuncion, "Hermanos", ref this.txtNumeroHermanos)) { _mensaje = mensaheFuncion; return(false); } if (valida.SQLInyectionValida(this.txtCorreoElectronico.Text.Trim(), ref mensaheFuncion, "Correo", ref this.txtCorreoElectronico)) { _mensaje = mensaheFuncion; return(false); } if (valida.SQLInyectionValida(this.txtRFC.Text.Trim(), ref mensaheFuncion, "RFC", ref this.txtRFC)) { _mensaje = mensaheFuncion; return(false); } if (valida.SQLInyectionValida(this.txtCodigoPostal.Text.Trim(), ref mensaheFuncion, "Codigo postal", ref this.txtCodigoPostal)) { _mensaje = mensaheFuncion; return(false); } return(true); }
public bool validacionHTML(ref String _mensaje) { CtrlvalidaInyeccion valida = new CtrlvalidaInyeccion(); string mensaheFuncion = string.Empty; if (valida.htmlInyectionValida(this.txtClaveUnica.Text.Trim(), ref mensaheFuncion, "Clave Unica", ref this.txtClaveUnica)) { _mensaje = mensaheFuncion; return(false); } if (valida.htmlInyectionValida(this.txtNombre.Text.Trim(), ref mensaheFuncion, "Nombre", ref this.txtNombre)) { _mensaje = mensaheFuncion; return(false); } if (valida.htmlInyectionValida(this.txtAPaterno.Text.Trim(), ref mensaheFuncion, "A paterno", ref this.txtAPaterno)) { _mensaje = mensaheFuncion; return(false); } if (valida.htmlInyectionValida(this.txtAMaterno.Text.Trim(), ref mensaheFuncion, "A Materno", ref this.txtAMaterno)) { _mensaje = mensaheFuncion; return(false); } if (valida.htmlInyectionValida(this.txtAMaterno.Text.Trim(), ref mensaheFuncion, "A Materno", ref this.txtAMaterno)) { _mensaje = mensaheFuncion; return(false); } if (valida.htmlInyectionValida(this.txtDia.Text.Trim(), ref mensaheFuncion, "Dia", ref this.txtDia)) { _mensaje = mensaheFuncion; return(false); } if (valida.htmlInyectionValida(this.txtMes.Text.Trim(), ref mensaheFuncion, "Mes", ref this.txtMes)) { _mensaje = mensaheFuncion; return(false); } if (valida.htmlInyectionValida(this.txtAnio.Text.Trim(), ref mensaheFuncion, "Año", ref this.txtAnio)) { _mensaje = mensaheFuncion; return(false); } if (valida.htmlInyectionValida(this.txtNumeroHermanos.Text.Trim(), ref mensaheFuncion, "Numero Hermanos", ref this.txtNumeroHermanos)) { _mensaje = mensaheFuncion; return(false); } if (valida.htmlInyectionValida(this.txtCorreoElectronico.Text.Trim(), ref mensaheFuncion, "Correo Electronico", ref this.txtCorreoElectronico)) { _mensaje = mensaheFuncion; return(false); } if (valida.htmlInyectionValida(this.txtRFC.Text.Trim(), ref mensaheFuncion, "RFC", ref this.txtRFC)) { _mensaje = mensaheFuncion; return(false); } if (valida.htmlInyectionValida(this.txtCodigoPostal.Text.Trim(), ref mensaheFuncion, "Codigo Posgal", ref this.txtCodigoPostal)) { _mensaje = mensaheFuncion; return(false); } return(true); }