Note that if you only set the ErrorMessage property (on the server) then the ErrorMessage will be copied into the Text property. Then it will not help to implement it directly (we need to implement it in code behind, not in the aspx page). If not do you have a way to get the id of the span in your script? What does Sauron need with mithril? More about the author
In the button click event we can check the Page.IsValid property to forward the process. Member Login Remember Me Forgot your password? I agree to the above terms. Why write an entire bash script in functions? http://stackoverflow.com/questions/5394861/dynamic-error-message-for-custom-validator-clientside
View All Notifications Email : * Password : * Remember me Forgot password? Labels: ASP.Net, Code Sample 1 comment: w3c said... Thanks, though. –Dustman Aug 5 '09 at 18:37 That's odd when I tried this at home the sender was the span. Asp.net Custom Validator Change Error Message Server Side February 19, 2013 at 5:25 PM Give your Valuable Comments Newer Post Older Post Home Subscribe to: Post Comments ( Atom ) Tweet Other Related Posts Interview Questions in ASP.NET,C#.NET,SQL Server,.NET
Thanks In the preceding code, the first if condition validates that the phone number is provided.
asked 5 years ago viewed 5777 times active 2 months ago Related 0How to hide / show CustomValidation validation messages without postback0A CustomValidator doesn't need to have it's ControlToValidate property set, Changing the SMTP server used by Team Foundation S... Using Google DSN on your Apple Mac ► November (15) ► October (30) ► September (40) ► August (54) ► July (11) ► June (36) ► May (40) ► April (37) http://performancepccanada.com/error-message/change-error-message-to-warning-message-in-sap.php Figure 3: Error message when user don't provide mob number Figure 4 shows what it looks like when the user provides an invalid number.
Will the medium be able to last 100 years? more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed In this way ASP.NET helps in displaying a dynamic error message in a Custom Control. Now, the client validation function takes two parameters, the > second of which points to the value to be validated (args.Value).
Jon Davis, Jan 20, 2004, in forum: ASP .Net Replies: 1 Views: 7,294 Ken Cox [Microsoft MVP] Jan 21, 2004 CustomValidator client-side scripting John Bonds, Aug 23, 2004, in forum: ASP