how to clear validation summary?

N

nmakhan

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?
 
A

Alvin Bruney [MVP]

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
 
N

nmakhan

the exact same question has been asked and i'm on the same board:

http://groups.google.com/group/micr...ar+validation+summary&rnum=2#150492bfc9f7d41f
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
-------------------------------------------------------


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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,810
Latest member
Kassie0918

Latest Threads

Top