Change ErrorMessage Text Dynamically

J

jdp

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.
 

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

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top