473,408 Members | 2,405 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,408 software developers and data experts.

Firing off validations when I want to, not on every function....

Howdy,

I have a page that has fields which have validators. What I want to do is
only validate the fields when the Next button is pressed, not every time a
function is called. The users are allowed to search for data before they
select it. Upon selecting it, its ID is loaded into a textbox. That textbox
is validated. However, as soon as they search for data, the validator is
fired. Is there anyway of disabling the validators until I want them to
validate?

Thanks!!

David Lozzi
Nov 19 '05 #1
3 820
> I have a page that has fields which have validators. What I want to do is
only validate the fields when the Next button is pressed, not every time a
function is called.


private sub button_next_click()...
yourValidatorControl.Validate
if yourValidatorControl.isvalid then...

-Darrel
Nov 19 '05 #2
Set the Search button's CausesValidation=false

-Brock
DevelopMentor
http://staff.develop.com/ballen
Howdy,

I have a page that has fields which have validators. What I want to do
is only validate the fields when the Next button is pressed, not every
time a function is called. The users are allowed to search for data
before they select it. Upon selecting it, its ID is loaded into a
textbox. That textbox is validated. However, as soon as they search
for data, the validator is fired. Is there anyway of disabling the
validators until I want them to validate?

Thanks!!

David Lozzi


Nov 19 '05 #3
THANK YOU!!!!

"Brock Allen" <ba****@NOSPAMdevelop.com> wrote in message
news:47**********************@msnews.microsoft.com ...
Set the Search button's CausesValidation=false

-Brock
DevelopMentor
http://staff.develop.com/ballen
Howdy,

I have a page that has fields which have validators. What I want to do
is only validate the fields when the Next button is pressed, not every
time a function is called. The users are allowed to search for data
before they select it. Upon selecting it, its ID is loaded into a
textbox. That textbox is validated. However, as soon as they search
for data, the validator is fired. Is there anyway of disabling the
validators until I want them to validate?

Thanks!!

David Lozzi


Nov 19 '05 #4

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

Similar topics

5
by: David Lozzi | last post by:
Hey All, I have a listbox that I would like to fire an event on doubleclick. the onDoubleClick property of the listbox isnt available be default, and I know it will work with Javascript, but how...
5
by: Sabbaath | last post by:
First off, I've pretty much convinced myself that the issue is that there are onmouseover events inside the div that contains an onmouseover event on it... I wrote the message below first. This was...
0
by: Brooke | last post by:
I am having problems with controls on a panel not firing. The controls that are directly on the form will validate, but the controls on the panel will not validate. I have the AutoValidate...
2
by: swethak | last post by:
hi , i write the code in .htm file. It is in cgi-bin/searches/one.htm.In that i write a form submitting and validations.But validations are not worked in that .htm file. I used the same code in my...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
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
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
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
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...
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,...

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.