protected void cvPackageExists_ServerValidate(object source, ServerValidateEventArgs args) { if (txtPackageName.Text.Equals(Target, StringComparison.InvariantCultureIgnoreCase) == false) { args.IsValid = (AutoUpdateManager.DoesPackageExist(txtPackageName.Text) == false); } else { args.IsValid = true; } }