469,654 Members | 1,857 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,654 developers. It's quick & easy.

how to clear validation summary?


I have a validation summary that I use soley for my Required Field
Validators. That works fine if I do things that way up to a point, if
by chance the
validation summary says "Date field required" then I edit the date and
input
an incorrect date, which I have a JavaScript validation for, that
message
will come up saying how to enter the date.

The problem is that the validation summary is now populated and it wont
clear until I hit the server again.

Is there a way to clear it or make it invisible through JavaScript on
some
form function like onsubmit - that will allow me to be able to
clear that summary?

Oct 15 '06 #1
2 4864
I'm not sure what you mean here, the validation summary is tied to the
validation control attached to the input web control. If the input web
control validates, the summary will be updated, otherwise it won't. That's
by design.

--
________________________
Warm regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
Professional VSTO.NET - Wrox/Wiley
The O.W.C. Black Book with .NET
www.lulu.com/owc, Amazon
Blog: http://www.msmvps.com/blogs/alvin
-------------------------------------------------------
<nm*****@gmail.comwrote in message
news:11**********************@m7g2000cwm.googlegro ups.com...
>
I have a validation summary that I use soley for my Required Field
Validators. That works fine if I do things that way up to a point, if
by chance the
validation summary says "Date field required" then I edit the date and
input
an incorrect date, which I have a JavaScript validation for, that
message
will come up saying how to enter the date.

The problem is that the validation summary is now populated and it wont
clear until I hit the server again.

Is there a way to clear it or make it invisible through JavaScript on
some
form function like onsubmit - that will allow me to be able to
clear that summary?

Oct 15 '06 #2
the exact same question has been asked and i'm on the same board:

http://groups.google.com/group/micro...0492bfc9f7d41f

Alvin Bruney [MVP] wrote:
I'm not sure what you mean here, the validation summary is tied to the
validation control attached to the input web control. If the input web
control validates, the summary will be updated, otherwise it won't. That's
by design.

--
________________________
Warm regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
Professional VSTO.NET - Wrox/Wiley
The O.W.C. Black Book with .NET
www.lulu.com/owc, Amazon
Blog: http://www.msmvps.com/blogs/alvin
-------------------------------------------------------
<nm*****@gmail.comwrote in message
news:11**********************@m7g2000cwm.googlegro ups.com...

I have a validation summary that I use soley for my Required Field
Validators. That works fine if I do things that way up to a point, if
by chance the
validation summary says "Date field required" then I edit the date and
input
an incorrect date, which I have a JavaScript validation for, that
message
will come up saying how to enter the date.

The problem is that the validation summary is now populated and it wont
clear until I hit the server again.

Is there a way to clear it or make it invisible through JavaScript on
some
form function like onsubmit - that will allow me to be able to
clear that summary?
Oct 16 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by =?Utf-8?B?QmFyYmFyYSBBbGRlcnRvbg==?= | last post: by
reply views Thread by =?Utf-8?B?QmFyYmFyYSBBbGRlcnRvbg==?= | last post: by
1 post views Thread by daveh551 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.