473,465 Members | 1,538 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Client Side OnBlur Triggering Validation

Hello,
Does anyone know how I can stop the RequiredFieldValidator from validation OnBlur and OnChange. I only want it to validate when the user submits the form (but still want it to run client side)

Thanks

Nov 18 '05 #1
1 4395
Two solutions:

1. Disable client side validation. Set EnableClientScript to false on the
validators. Your server side code to validate takes over. (You did write
code to check Page.IsValid, right?)

2. Microsoft's validators are quite limited. I rewrote validation for
ASP.NET to handle a greatly expanded set of possibilities, so that you
wouldn't have to develop custom code or (in this case) hacks. Within
"Professional Validation And More" (http://www.peterblum.com/vam/home.aspx),
you can keep client side validation enabled and disable validation during on
change by setting each validator's EventsThatValidate property to
"OnSubmit". I put together a list of limitations in Microsoft's validators
at http://www.peterblum.com/vam/valmain.aspx to assist users as they design
their site's validation.

--- Peter Blum
www.PeterBlum.com
Email: PL****@PeterBlum.com
Creator of "Professional Validation And More" at
http://www.peterblum.com/vam/home.aspx

"Joe.Dattilo" <Jo********@discussions.microsoft.com> wrote in message
news:E5**********************************@microsof t.com...
Hello,
Does anyone know how I can stop the RequiredFieldValidator from validation OnBlur and OnChange. I only want it to validate when the user
submits the form (but still want it to run client side)
Thanks

Nov 18 '05 #2

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

Similar topics

3
by: arc | last post by:
I have a server object that performs zipcode validation based on zipcode entered in the web form. Ideally this should work as follows: Once the zip code is entered in the edit box it should...
1
by: Christoph | last post by:
I'm trying to validate some HTML form elements when the user tabs out of each element. However, I'm having some problems. It appears that the order of events is onChange followed some time...
4
by: | last post by:
Hello Guys, I am using the validation controls to validate my data. But the problem is "The page is still being posted to server". I want to get rid of the round trips to server. Are there...
14
by: Matt | last post by:
I want to know if ASP.NET Web Forms Validation Controls are Server-Side or Client-Side form validation? Since I think each validator control can select either 1) JavaScript based error dialog or 2)...
8
by: moondaddy | last post by:
I have a form for entering a user's address and all fields have a required validating control associated with them and the error msg for each field displays right next to it. The normal behavior...
9
by: AFN | last post by:
I was just dropped into someone else's code (isn't that always so fun?). I can't figure out why a custom validation control's server event function is executing. There is nothing (that I see)...
1
by: owen79 | last post by:
Hi, I have a repeater on a asp.net (c#) page that holds the details of daily bed occupancy for a hostpital ward for any given date. For each hostpital there are a number of wards. So a hostiptal...
0
by: ginnone | last post by:
I've got several TextBox in my aspnet 2.0 web page. I'm able to assign validators to those controls, and i'm able to perform both client side and server side validation. The only thing I need, is...
0
by: Nathan Sokalski | last post by:
I have written a Validator (a class that inherits from the BaseValidator class), and it includes client-side validation functions. The validator is a conditional validator that only validates if a...
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...
1
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.