how to clear validation summary?

  • Thread starter Thread starter nmakhan
  • Start date Start date
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?
 
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
 
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?
 
Back
Top