Change ErrorMessage Text Dynamically

Discussion in 'ASP .Net' started by jdp, Oct 2, 2006.

  1. jdp

    jdp Guest

    Is there a way to change/set the ErrorMessage and/or Text property of
    validationcontrols without making a trip to the server? What I have so
    far is a usercontrol that inherits from BaseValidator and overrides the
    Pre_Render event in which I have javascript code to do validation. I
    also override the AddAttributesToRender event to point to my new
    validation function. I'm looking to have a central repository of error
    messages so each developer doesn't have to figure one out.
     
    jdp, Oct 2, 2006
    #1
    1. Advertisements

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. PeterKellner
    Replies:
    2
    Views:
    546
    PeterKellner
    May 17, 2006
  2. Andy

    Validator Text vs. ErrorMessage

    Andy, Jul 14, 2009, in forum: ASP .Net
    Replies:
    1
    Views:
    796
  3. jdp

    Change ErrorMessage Text Dynamically

    jdp, Oct 3, 2006, in forum: ASP .Net Building Controls
    Replies:
    4
    Views:
    234
  4. Andrew Backer

    Validation Controls : .ErrorMessage & .Text relationship

    Andrew Backer, Mar 8, 2005, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    203
    MasterGaurav
    Mar 9, 2005
  5. David Thielen

    Validator - Text vs ErrorMessage

    David Thielen, May 28, 2006, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    199
    David Thielen
    May 28, 2006
  6. jdp

    Change ErrorMessage Text Dynamically

    jdp, Oct 3, 2006, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    190
  7. irma
    Replies:
    0
    Views:
    206
  8. Margaret Asami

    how to change link.text color dynamically ?

    Margaret Asami, Sep 30, 2003, in forum: Javascript
    Replies:
    1
    Views:
    190
Loading...