Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CustomValidator myCustomValidator = new CustomValidator();
- myCustomValidator.ValidationGroup = "MyGroup";
- myCustomValidator.ErrorMessage = "This ID already exists.";
- myCustomValidator.IsValid = false;
- Page.Validators.Add(myCustomValidator);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement