Beispiel #1
0
 private void TypeVal()
 {
     if (this.txtRelated.Text.Trim().Length > 0)
     {
         if (!PubEntAdminManager.ContentVal(this.txtRelated.Text.Trim(), @"^[a-zA-Z0-9]{1,10}$"))
         {
             Response.Redirect("InvalidInput.aspx");
         }
     }
 }
Beispiel #2
0
        private void TypeVal()
        {
            if (this.txtNIHNum1.Text.Trim().Length > 0)
            {
                if (!PubEntAdminManager.ContentVal(this.txtNIHNum1.Text.Trim(), @"^\d{2}$"))
                {
                    Response.Redirect("InvalidInput.aspx");
                }
            }

            if (this.txtNIHNum2.Text.Trim().Length > 0)
            {
                if (!PubEntAdminManager.ContentVal(this.txtNIHNum2.Text.Trim(), @"^[a-zA-Z0-9]{3,5}$"))
                {
                    Response.Redirect("InvalidInput.aspx");
                }
            }
        }