Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > validation question

Reply
Thread Tools

validation question

 
 
Ely
Guest
Posts: n/a
 
      05-10-2004
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


 
Reply With Quote
 
 
 
 
Rick Spiewak
Guest
Posts: n/a
 
      05-11-2004
Don't use a validator, write your own javascript and use the onblur event.

"Ely" <(E-Mail Removed)> wrote in message
news:e$(E-Mail Removed)...
> 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
>
>



 
Reply With Quote
 
 
 
 
Peter Blum
Guest
Posts: n/a
 
      05-11-2004
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: http://www.velocityreviews.com/forums/(E-Mail Removed)
Creator of "Professional Validation And More" at
http://www.peterblum.com/vam/home.aspx


"Ely" <(E-Mail Removed)> wrote in message
news:e$(E-Mail Removed)...
> 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
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Displaying a Validation Error in a Validation Summary Control Lucas Tam ASP .Net 2 02-26-2004 07:49 PM
ASP.NET Web Forms Validation Controls are Server-Side or Client-Side Validation? Matt ASP .Net 14 01-30-2004 09:15 AM
Web form validation vs object validation Colin Basterfield ASP .Net 1 11-29-2003 12:10 AM
validation summary doesnt display when there's client-side validation Libs ASP .Net 0 06-25-2003 03:05 PM
Re: only custom validation control does server side validation? Colin Mackay ASP .Net 0 06-25-2003 07:54 AM



Advertisments