ValidationSummary - error message in reponse to exception

Discussion in 'ASP .Net' started by =?Utf-8?B?bWc=?=, Apr 5, 2004.

  1. Is there a way to include in a ValidationSummary an error message that says that an exception was thrown or that an if/else test went to 'else' ?
    =?Utf-8?B?bWc=?=, Apr 5, 2004
    #1
    1. Advertising

  2. =?Utf-8?B?bWc=?=

    Peter Blum Guest

    The ValidationSummary only shows the errors from validators. It doesn't
    appear unless at least one validator has its IsValid property set to false.

    So create a custom validator whose server side evaluation function
    determines these issues and sets ErrorMessage to the text that you want to
    say. You can also set the IsValid and ErrorMessage properties manually after
    the validation function runs, such as in response to catching an exception
    or running if/else.

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

    "mg" <> wrote in message
    news:...
    > Is there a way to include in a ValidationSummary an error message that

    says that an exception was thrown or that an if/else test went to 'else' ?
    Peter Blum, Apr 5, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?YzY3NjIyOA==?=
    Replies:
    2
    Views:
    6,514
    =?Utf-8?B?UGhpbGxpcCBXaWxsaWFtcw==?=
    Jan 13, 2006
  2. Anbu
    Replies:
    4
    Views:
    7,152
  3. dsmportal
    Replies:
    0
    Views:
    532
    dsmportal
    Oct 25, 2006
  4. marc

    ValidationSummary doesn't get nested control error message

    marc, Feb 4, 2004, in forum: ASP .Net Building Controls
    Replies:
    1
    Views:
    191
    Alessandro Zifiglio
    Feb 5, 2004
  5. Anbu

    How to Deserialize SoapService's reponse message

    Anbu, Aug 7, 2006, in forum: ASP .Net Web Services
    Replies:
    4
    Views:
    271
Loading...

Share This Page