|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Adding errors by hand to a validationsummary?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! 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! > 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! >> > >
Inheriting from the TreeNode class
CreateChildControls() always returns default property values GridView "visible=False" data items not accessible? programattically Enabling/diusabling child controls Input fields are renamed with runat="server", how do I change it Website on a website. Menu Control and Page Validation Dependent GridViews And CommandArguments Set visibility of label in itemtemplate of repeater control VS 2005 Validator controls |
|||||||||||||||||||||||