473,387 Members | 1,440 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,387 software developers and data experts.

IsValid property on Validation controls

We have client computers that are using Netscape 4.X, which appear to
disregard all validator controls, like a RequiredFieldValidator. To deal
with this issue, we write server side code that confirms that the IsValid
property is true for EACH validator control.

To automate this a bit, and minimize writing this code on each page of an
application that requires this, I was hoping to iterate through all the
Validator controls and identify if the IsValid property is True for each.
However, I've been unable to pull this off. Suggestions on an approach or
will each control have to be validated individually? For good or for bad,
adding additional JavaScript is not an option.

Thanks in advance.

Mark
Nov 18 '05 #1
1 1637
Sorry. Just discovered that the following does the job:

1. Call the Page.Validate() method.
2. Check the Page.IsValid property.
3. When the page posts back, the validation controls will display.

This also affects the new Mozilla Firefox browser. Sigh.

Mark
"Mark" <fi******@idonotlikejunkmail.umn.edu> wrote in message
news:Od*************@TK2MSFTNGP12.phx.gbl...
We have client computers that are using Netscape 4.X, which appear to
disregard all validator controls, like a RequiredFieldValidator. To deal
with this issue, we write server side code that confirms that the IsValid
property is true for EACH validator control.

To automate this a bit, and minimize writing this code on each page of an
application that requires this, I was hoping to iterate through all the
Validator controls and identify if the IsValid property is True for each.
However, I've been unable to pull this off. Suggestions on an approach or
will each control have to be validated individually? For good or for bad,
adding additional JavaScript is not an option.

Thanks in advance.

Mark

Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Jon Davis | last post by:
This is always returning True, even when fields are empty. Why? private bool ValidatePageOne() { bool ret = true; foreach (Control ctrl in PageOnePanel.Controls) { if...
3
by: Jon Davis | last post by:
This is always returning True, even when fields are empty. Why? private bool ValidatePageOne() { bool ret = true; foreach (Control ctrl in PageOnePanel.Controls) { if...
4
by: R.A. | last post by:
Hi If I use the client side validation control, do I need to check for IsValid on the server side? if yes then why? Thanks
1
by: Paul | last post by:
Hi Guys and Girls I am trying to disable the clientside validation (Required Fields) by using the ValidatorEnable(id,false), which works find from the point of view that the client side script...
6
by: Mike Chen | last post by:
We know in server code, we can check the page validated by using Page.IsValid where we put some validator controls on aspx page. I want to set some value after validating user input values on...
0
by: Arti | last post by:
Hi, I am using ASP.NET 2.0 ; Windows XP SP3 machine. In my web page i have made use of twocustom validator controls. Say, cv1 and cv2 Programatically - cv1_ServerValidate(object source,...
1
by: Andrew Jocelyn | last post by:
Hi I have couple of dropdown controls each with a requiredfieldvalidator. I clear the dropdownlist in the button click event. When the page is rendered the dropdown validator already flags it's...
2
by: =?Utf-8?B?R2FyeSBMYXJpbWVy?= | last post by:
I an asp.net web page with a simple form and a Submit button. Form entries are validated client side, but as a back up I would also like to validate server side, but not sure where to do it code....
1
by: COHENMARVIN | last post by:
I have a page that has several validators, and they are organized into validation groups. I want to check the 'Page.IsValid' flag, but I don't think I can make it restrict itself to one validation...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...

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.