By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,686 Members | 1,603 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,686 IT Pros & Developers. It's quick & easy.

validation question

P: n/a
Ely
When validating a control client side, is there a way to get the error
message to display in the validation summary as soon as the control losses
focus? Right now it only displays when the user clicks on the submit
button.

Thanks,
Ely
Nov 18 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Don't use a validator, write your own javascript and use the onblur event.

"Ely" <el**@ianinc.com> wrote in message
news:e$**************@tk2msftngp13.phx.gbl...
When validating a control client side, is there a way to get the error
message to display in the validation summary as soon as the control losses
focus? Right now it only displays when the user clicks on the submit
button.

Thanks,
Ely

Nov 18 '05 #2

P: n/a
I'm not sure why you explicitly want the ValidationSummary to appear upon
getting the first error. You can fake it in several ways.
1. Put the validators in the location of the ValidationSummary control. Omit
the ValidationSummary itself. This is still tricky due to formatting
multiple messages.
2. I wrote a replacement to Microsoft's validators to overcome its many
limitations. "Professional Validation And More"
(http://www.peterblum.com/vam/home.aspx) has several features that may help:
- If you are putting error messages elsewhere because of screen realestate,
my validators offer several "ErrorFormatters" that take up very little
screen space: an image that pops up the error message via alert or tooltip;
a hyperlink that shows an alert with the error message.
- My ValidationSummary auto shows and hides error messages as the user
edits. However, it doesn't show unless the user submits or you write one
call to my javascript that is invoked as the page is loaded.
- My CombinedErrorMessages control is a kind of mix between a
ValidationSummary and normal validators. It lets you group a list of
validators. They appear at the location of this control, like a
ValidationSummary, but at the time the edit is made.

--- Peter Blum
www.PeterBlum.com
Email: PL****@PeterBlum.com
Creator of "Professional Validation And More" at
http://www.peterblum.com/vam/home.aspx
"Ely" <el**@ianinc.com> wrote in message
news:e$**************@tk2msftngp13.phx.gbl...
When validating a control client side, is there a way to get the error
message to display in the validation summary as soon as the control losses
focus? Right now it only displays when the user clicks on the submit
button.

Thanks,
Ely

Nov 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.