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

    Validator Text vs. ErrorMessage

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

    Change ErrorMessage Text Dynamically

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

    Validation Controls : .ErrorMessage & .Text relationship

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

    Change ErrorMessage Text Dynamically

    jdp, Oct 3, 2006, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    106
Loading...

Share This Page