Therefore when using only a validator, either will work, though I would suggest .errorMessage. Description I have one textbox, one button and one custom validator to validate the textbox whenever user clicks on button.In customvalidator I have taken ClientValidationFunction="ClientValidationFunction" this clientside function is used to Labels: ASP.Net, Code Sample 1 comment: w3c said... Follow @ASPSnippets Follow @ASPSnippets Name Required Email Required Invalid Email Address Comment Required Security code: Required Invalid security code. this contact form
Secondly, if the user provides an invalid phone number then it displays a second error message. Asp.net Custom Validator Change Error Message Server Side Hot Network Questions Should I use the formal form (~ます) on the buttons of an app? SSH makes all typed passwords visible when command is provided as an argument to the SSH command Would it be ok to eat rice using a spoon in front of Westerners? here All contents are copyright of their authors.
Asp.net Custom Validator Change Error Message Server Side
Figure 2: Page loads first time with no error message Figure 3 shows what it looks like when the user leaves the TextBox blank and hits the button. Asp Customvalidator When you set the errormessage on the sender in the client side validation function you are setting the equivalent of the ErrorMessage property. sender.innerText will work to set the error message if you are not using the validator extender callout (i.e.
Here it displays an error message that it is required.
DenverGov.org 1999 - 2009 - An evolutionary tale JQuery Print Plugin Some Gmail features have failed to load due to an ... Typically if the answer is already in the comment you can submit an edit to the answer (especially when it is the accepted answer) to have it improved. –Kelsey Jan 8 Sorry I can't be more helpful at the moment as I am at work. –drs9222 Aug 5 '09 at 19:31 A number of websites state that the "sender.errormessage" construct Custom Validator In Asp.net Example Regex expression in mapinfo sql to remove special character How to slow down sessions?
Error message when no selection is made 2. Error message when Phone number is selected and its corresponding Textbox is left empty 3 Error message when Phone number is selected and its corresponding Textbox is left empty Demo View He is also a Microsoft Regional Director and the founder of INETA. http://internetmairie.com/error-message/apex-message.html Algebraic objects associated with topological spaces.