If validation summary is in MessageBox mode, it won't show the message
unless your custom validator works at client as well. At server side it is
the setting of IsValid=false as you noted but it works only if validation
summary has ShowSummary=True specified. Yes, it is specified in
ServerValidate event handler.
--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist
"Lucas Tam" <> wrote in message
news:Xns949ADD0C2EC4Fnntprogerscom@140.99.99.130.. .
> Hi all,
>
>
> I want to display an error message from a custom validator in my
Validation
> Summary control.
>
> Do I need to build the ServerValidate Event handler in order to display an
> error message?
>
> All I wish to do is raise an error message on a failed database insert -
> can I just set cvMyCustomValidator.IsValid = False?
>
> Thanks.
>
> --
> Lucas Tam ()
> Please delete "REMOVE" from the e-mail address when replying.
> http://members.ebay.com/aboutme/coolspot18/