473,394 Members | 1,854 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

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 5186
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Rob Meade | last post by:
Hi all, I have a login page which has username and password fields, a login button, and 2 validation controls (one for each field) - currently I have controls to display to the summary if the...
1
by: Tony | last post by:
Hi folks, I've got a bit of a problem. I have a situation where I build forms completely dynamically based on a form definition supplied from a database. Anyway, I noticed that required fields...
2
by: Lucas Tam | last post by:
Hi all, I want to display an error message from a custom validator in my Validation Summary control. Do I need to build the ServerValidate Event handler in order to display an error...
2
by: Barbara Alderton | last post by:
I setup some standard Required Field Validation controls and one Custom validation control on an ASP.NET page (within a user control) to validate text entry. I also setup a Summary Control to post...
0
by: Cleako | last post by:
Here is my dilema. I have a validation summary that I use soley for my Required Field Validators. I have it setup to run from a Page.Validate call in the code-behind, this is because I need to...
5
by: paul_zaoldyeck | last post by:
does anyone know how to validate an xml file against multiple defined schema? can you show me some examples? i'm making here an xml reader.. thank you
1
by: =?Utf-8?B?QmFyYmFyYSBBbGRlcnRvbg==?= | last post by:
I'm having trouble working with a Summary Validation control. I need to click my submit button twice for the Summary to display when validation errors occur on the page. Background: My page...
0
by: =?Utf-8?B?QmFyYmFyYSBBbGRlcnRvbg==?= | last post by:
I'm having trouble working with a Summary Validation control. I need to click my submit button twice for the Summary to display when validation errors occur on the page. Background: My page...
1
by: daveh551 | last post by:
I have a web page with an address entry form and some other things on it. The form has field validators on several of the fields, and a validation summary at the bottom. Because of the size of...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.