Home All Groups Group Topic Archive Search About

Form Validation Indicator (Yes/No)

Author
21 Jan 2006 6:45 PM
Chance Hopkins
Is there anyway to have a message pop up by my submit button that says "the
form didn't validate, check above"?

Then the user can look at the individual validation messages by each field.

Author
22 Jan 2006 12:25 PM
Gabriël@Home
Chance Hopkins wrote:
> Is there anyway to have a message pop up by my submit button that says "the
> form didn't validate, check above"?
>
> Then the user can look at the individual validation messages by each field.
>
>
I wouldn't use a popup.

As I can read this, it's standard Validation with the Standard
validation controls. In stead of Error Message you use the Text
attribute (if i'm right), which will appear upon errors and on the
position you placed the validator (not the summary). (I personally also
change the backcolor of incorrect fields to make it easier to find).

Have a search for how it works exactly.

Else search for javascript.
Author
23 Jan 2006 7:28 PM
Peter Blum
Add the ValidationSummary control to the page. Then set the
ValidationSummary.ShowMessageBox property to true.

--- Peter Blum
www.PeterBlum.com
Email: PLB***@PeterBlum.com
Creator of "Professional Validation And More" at
http://www.peterblum.com/vam/home.aspx

Show quote
"Chance Hopkins" <chance_hopk***@hotmail.com> wrote in message
news:O%230OMrrHGHA.532@TK2MSFTNGP15.phx.gbl...
> Is there anyway to have a message pop up by my submit button that says
> "the form didn't validate, check above"?
>
> Then the user can look at the individual validation messages by each
> field.
>
Author
24 Jan 2006 2:21 AM
Chance Hopkins
"Peter Blum" <PLB***@Blum.info> wrote in message
news:uOsD%23MFIGHA.3000@TK2MSFTNGP14.phx.gbl...
> Add the ValidationSummary control to the page.

That sounds like exactly what I was after. Thanks!!

> Then set the ValidationSummary.ShowMessageBox property to true.

When I said "pop up" I didn't mean to imply a javascript alert, I'll be more
careful with wording next time. I just meant inline in the page.

You gave me what I need though. Thanks again.

AddThis Social Bookmark Button