Пример #1
0
 private global::System.Web.UI.WebControls.RegularExpressionValidator @__BuildControlregFileUpload()
 {
     global::System.Web.UI.WebControls.RegularExpressionValidator @__ctrl;
     @__ctrl            = new global::System.Web.UI.WebControls.RegularExpressionValidator();
     this.regFileUpload = @__ctrl;
     @__ctrl.ApplyStyleSheetSkin(this.Page);
     @__ctrl.ID = "regFileUpload";
     @__ctrl.ControlToValidate    = "fileupload";
     @__ctrl.ErrorMessage         = "The file is not a Valid One";
     @__ctrl.ForeColor            = global::System.Drawing.Color.Red;
     @__ctrl.ValidationExpression = "^.*\\.(XLSX|xlsx)$";
     return(@__ctrl);
 }
Пример #2
0
 private global::System.Web.UI.WebControls.RegularExpressionValidator @__BuildControlrxvCorreo()
 {
     global::System.Web.UI.WebControls.RegularExpressionValidator @__ctrl;
     @__ctrl        = new global::System.Web.UI.WebControls.RegularExpressionValidator();
     this.rxvCorreo = @__ctrl;
     @__ctrl.ApplyStyleSheetSkin(this.Page);
     @__ctrl.ID                   = "rxvCorreo";
     @__ctrl.Text                 = "No válida.";
     @__ctrl.Display              = global::System.Web.UI.WebControls.ValidatorDisplay.Dynamic;
     @__ctrl.ControlToValidate    = "txbCorreo";
     @__ctrl.ValidationExpression = "\\w+([-+.]\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*";
     @__ctrl.SetFocusOnError      = true;
     return(@__ctrl);
 }
Пример #3
0
 private global::System.Web.UI.WebControls.RegularExpressionValidator @__BuildControlrxvCI()
 {
     global::System.Web.UI.WebControls.RegularExpressionValidator @__ctrl;
     @__ctrl    = new global::System.Web.UI.WebControls.RegularExpressionValidator();
     this.rxvCI = @__ctrl;
     @__ctrl.ApplyStyleSheetSkin(this.Page);
     @__ctrl.ID                   = "rxvCI";
     @__ctrl.Text                 = "No válido.";
     @__ctrl.Display              = global::System.Web.UI.WebControls.ValidatorDisplay.Dynamic;
     @__ctrl.ControlToValidate    = "txbCI";
     @__ctrl.ValidationExpression = "^\\d{5,10}[A-Za-z]{2}$";
     @__ctrl.SetFocusOnError      = true;
     return(@__ctrl);
 }
 private global::System.Web.UI.WebControls.RegularExpressionValidator @__BuildControltelRegularExpressionValidator()
 {
     global::System.Web.UI.WebControls.RegularExpressionValidator @__ctrl;
     @__ctrl = new global::System.Web.UI.WebControls.RegularExpressionValidator();
     this.telRegularExpressionValidator = @__ctrl;
     @__ctrl.ApplyStyleSheetSkin(this.Page);
     @__ctrl.ID                   = "telRegularExpressionValidator";
     @__ctrl.ErrorMessage         = "";
     @__ctrl.ValidationExpression = "^\\d+$";
     @__ctrl.ControlToValidate    = "txtPhone";
     @__ctrl.CssClass             = "errormsg";
     @__ctrl.Display              = global::System.Web.UI.WebControls.ValidatorDisplay.Dynamic;
     return(@__ctrl);
 }
 private global::System.Web.UI.WebControls.RegularExpressionValidator @__BuildControlmailRegularExpressionValidator()
 {
     global::System.Web.UI.WebControls.RegularExpressionValidator @__ctrl;
     @__ctrl = new global::System.Web.UI.WebControls.RegularExpressionValidator();
     this.mailRegularExpressionValidator = @__ctrl;
     @__ctrl.ApplyStyleSheetSkin(this.Page);
     @__ctrl.ID                   = "mailRegularExpressionValidator";
     @__ctrl.ErrorMessage         = "emailvalidation";
     @__ctrl.ControlToValidate    = "txtEMail";
     @__ctrl.ValidationExpression = "\\w+([-+.\']\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*";
     @__ctrl.CssClass             = "errormsg";
     @__ctrl.SetFocusOnError      = true;
     @__ctrl.Display              = global::System.Web.UI.WebControls.ValidatorDisplay.Dynamic;
     return(@__ctrl);
 }
 private global::System.Web.UI.WebControls.RegularExpressionValidator @__BuildControlrexCuenta()
 {
     global::System.Web.UI.WebControls.RegularExpressionValidator @__ctrl;
     @__ctrl        = new global::System.Web.UI.WebControls.RegularExpressionValidator();
     this.rexCuenta = @__ctrl;
     @__ctrl.ApplyStyleSheetSkin(this.Page);
     @__ctrl.ID = "rexCuenta";
     @__ctrl.ControlToValidate    = "txbCuenta";
     @__ctrl.ValidationGroup      = "Cupones";
     @__ctrl.Display              = global::System.Web.UI.WebControls.ValidatorDisplay.Dynamic;
     @__ctrl.ErrorMessage         = "El valor ingresado no es válido.";
     @__ctrl.SetFocusOnError      = true;
     @__ctrl.ForeColor            = ((System.Drawing.Color)(global::System.Drawing.Color.FromArgb(149, 193, 31)));
     @__ctrl.ValidationExpression = "^[0-9]+$";
     return(@__ctrl);
 }
 private global::System.Web.UI.WebControls.RegularExpressionValidator @__BuildControlSkuRegExValidator()
 {
     global::System.Web.UI.WebControls.RegularExpressionValidator @__ctrl;
     @__ctrl = new global::System.Web.UI.WebControls.RegularExpressionValidator();
     this.SkuRegExValidator = @__ctrl;
     @__ctrl.ApplyStyleSheetSkin(this.Page);
     @__ctrl.ErrorMessage         = "RegularExpressionValidator";
     @__ctrl.ID                   = "SkuRegExValidator";
     @__ctrl.ControlToValidate    = "PartSearchTextBox";
     @__ctrl.ValidationExpression = "^[a-zA-Z0-9]{3,255}$";
     @__ctrl.Display              = System.Web.UI.WebControls.ValidatorDisplay.Dynamic;
     @__ctrl.SetFocusOnError      = true;
     System.Web.UI.IParserAccessor @__parser = ((System.Web.UI.IParserAccessor)(@__ctrl));
     @__parser.AddParsedSubObject(new System.Web.UI.LiteralControl("Part SKU must contain at least three (3) alpha-numeric characters !"));
     return(@__ctrl);
 }
Пример #8
0
 private global::System.Web.UI.WebControls.RegularExpressionValidator @__BuildControlRegularExpressionValidator72() {
     global::System.Web.UI.WebControls.RegularExpressionValidator @__ctrl;
     @__ctrl = new global::System.Web.UI.WebControls.RegularExpressionValidator();
     this.RegularExpressionValidator72 = @__ctrl;
     @__ctrl.ApplyStyleSheetSkin(this.Page);
     @__ctrl.ID = "RegularExpressionValidator72";
     @__ctrl.ControlToValidate = "txtDOB";
     @__ctrl.ErrorMessage = "Invalid Date (dd/mm/yyyy)";
     @__ctrl.ValidationExpression = @"^(((0[1-9]|[12]\d|3[01])\/(0[13578]|1[02])\/((19|[2-9]\d)\d{2}))|((0[1-9]|[12]\d|30)\/(0[13456789]|1[012])\/((19|[2-9]\d)\d{2}))|((0[1-9]|1\d|2[0-8])\/02\/((19|[2-9]\d)\d{2}))|(29\/02\/((1[6-9]|[2-9]\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))))$";
     return @__ctrl;
 }
Пример #9
0
 private global::System.Web.UI.WebControls.RegularExpressionValidator @__BuildControlRegularExpressionValidator9() {
     global::System.Web.UI.WebControls.RegularExpressionValidator @__ctrl;
     @__ctrl = new global::System.Web.UI.WebControls.RegularExpressionValidator();
     this.RegularExpressionValidator9 = @__ctrl;
     @__ctrl.ApplyStyleSheetSkin(this.Page);
     @__ctrl.ID = "RegularExpressionValidator9";
     @__ctrl.ControlToValidate = "txtOtherInsuredP";
     @__ctrl.ErrorMessage = "Please enter a currency";
     @__ctrl.ValidationExpression = "^\\$?([0-9]{1,3},([0-9]{3},)*[0-9]{3}|[0-9]+)(.[0-9][0-9])?$";
     return @__ctrl;
 }
Пример #10
0
 private global::System.Web.UI.WebControls.RegularExpressionValidator @__BuildControlRegularExpressionValidator8() {
     global::System.Web.UI.WebControls.RegularExpressionValidator @__ctrl;
     @__ctrl = new global::System.Web.UI.WebControls.RegularExpressionValidator();
     this.RegularExpressionValidator8 = @__ctrl;
     @__ctrl.ApplyStyleSheetSkin(this.Page);
     @__ctrl.ID = "RegularExpressionValidator8";
     @__ctrl.ControlToValidate = "txtEmailP";
     @__ctrl.Display = System.Web.UI.WebControls.ValidatorDisplay.Dynamic;
     @__ctrl.ErrorMessage = "Invalid email format";
     @__ctrl.ValidationExpression = "\\w+([-+.\']\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*";
     return @__ctrl;
 }
Пример #11
0
 private global::System.Web.UI.WebControls.RegularExpressionValidator @__BuildControlRegularExpressionValidator6() {
     global::System.Web.UI.WebControls.RegularExpressionValidator @__ctrl;
     @__ctrl = new global::System.Web.UI.WebControls.RegularExpressionValidator();
     this.RegularExpressionValidator6 = @__ctrl;
     @__ctrl.ApplyStyleSheetSkin(this.Page);
     @__ctrl.ID = "RegularExpressionValidator6";
     @__ctrl.ControlToValidate = "txtHomeP";
     @__ctrl.Display = System.Web.UI.WebControls.ValidatorDisplay.Dynamic;
     @__ctrl.ErrorMessage = "Invalid phone format";
     @__ctrl.ValidationExpression = "^\\d+$";
     return @__ctrl;
 }