Home All Groups Group Topic Archive Search About

Adding errors by hand to a validationsummary?

Author
17 Jan 2006 2:03 PM
JohnnyGr
How can i add my own errors to the validationsummary control`?

I have a button that does some checking against an database and if something
goes wrong i want to put a error in the validationsummary control, is this
possible? if so, how do i do it...

Thanks!

Author
17 Jan 2006 5:55 PM
Peter Blum
Add a CustomValidator that handles this checking for you. In the
ServerValidation method, you can update the ErrorMessage property to reflect
whatever you want.

--- Peter Blum
www.PeterBlum.com
Email: PLB***@PeterBlum.com
Creator of "Professional Validation And More" at
http://www.peterblum.com/vam/home.aspx

Show quoteHide quote
"JohnnyGr" <joh***@liquidzone.net> wrote in message
news:tuGdncqlG-C_ZFHeRVny3w@giganews.com...
> How can i add my own errors to the validationsummary control`?
>
> I have a button that does some checking against an database and if
> something goes wrong i want to put a error in the validationsummary
> control, is this possible? if so, how do i do it...
>
> Thanks!
>
Author
18 Jan 2006 7:26 AM
JohnnyGr
Thanks, that did it.

Show quoteHide quote
"Peter Blum" <PLB***@Blum.info> skrev i meddelandet
news:ubMlp84GGHA.3864@tk2msftngp13.phx.gbl...
> Add a CustomValidator that handles this checking for you. In the
> ServerValidation method, you can update the ErrorMessage property to
> reflect whatever you want.
>
> --- Peter Blum
> www.PeterBlum.com
> Email: PLB***@PeterBlum.com
> Creator of "Professional Validation And More" at
> http://www.peterblum.com/vam/home.aspx
>
> "JohnnyGr" <joh***@liquidzone.net> wrote in message
> news:tuGdncqlG-C_ZFHeRVny3w@giganews.com...
>> How can i add my own errors to the validationsummary control`?
>>
>> I have a button that does some checking against an database and if
>> something goes wrong i want to put a error in the validationsummary
>> control, is this possible? if so, how do i do it...
>>
>> Thanks!
>>
>
>