Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old June 8th, 2006, 01:28 PM
Authorized User
Join Date: May 2006
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default Disabling automatic validation: comparevalidator?

So things have been going smoothly on my new site project except for a few hangups.

For the various forms that are on the site, I have used requiredfield validators, comparevalidators, and regularexpression validators, all of which work very well. I made sure that every text box and dropdown menu had their "CausesValidation" property set to false, but the compare validators and regex validators still fire every time a check box is changed-- I only want validation to fire when the user hits the submit button...

I would probably be able to do the validation in the onclick event of the submit button, but for one thing that becomes far more complicated (and loses the simplicity of using the validator controls) and would be done on the server side anyway...

Am I just missing something really obvious? I would imagine that this would be a fairly common request among web designers like myself. To be clear, setting the CausesValidation property of my textbox and dropdown controls to "false" does solve the problem for the requiredField validators, but not for the comparevalidators or regularexpression validators.

Thanks in advance for any direction on this one.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Standalone validation + web form validation morbo Struts 0 August 19th, 2008 04:02 AM
CompareValidator for Dates kapi.goel C# 0 April 18th, 2006 05:42 AM
Disabling Refresh mildge Beginning PHP 1 December 22nd, 2003 01:00 PM
CompareValidator DittoToo ASP.NET 1.0 and 1.1 Basics 1 August 27th, 2003 11:23 AM
Disabling browser farhanzia Javascript How-To 1 July 9th, 2003 02:03 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.