Change ErrorMessage Text Dynamically

J

jdp

Is there a way to set/change 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.

Any feedback would be appreciated.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,050
Latest member
AngelS122

Latest Threads

Top