473,387 Members | 1,721 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.

How do I turn off validation?

jm
I have an ASP .NET page with three DataGrids. On one of the datagrids
there are several vaildators. On another grid there is a button that
does something else (changes data in a database). The problem is that
that button causes the validator for the other grid to fire, as they
are on the same form. But I don't want to validate any data; I don't
want the validators to fire at all. I would enable=false them, in my
button, but the validators fire before the button' script client and
server. Any ideas? Thanks.
Nov 17 '05 #1
2 3156
Hi

In the second dataGrid you can modify the CausesValidation property (=false)
of the button so the button don't cause the validation of the first grid.

Here an example:
http://www.dotnet247.com/247referenc...26/132415.aspx

Ciao
Giorgio

"jm" <jo*************@yahoo.com> ha scritto nel messaggio
news:c6**************************@posting.google.c om...
I have an ASP .NET page with three DataGrids. On one of the datagrids
there are several vaildators. On another grid there is a button that
does something else (changes data in a database). The problem is that
that button causes the validator for the other grid to fire, as they
are on the same form. But I don't want to validate any data; I don't
want the validators to fire at all. I would enable=false them, in my
button, but the validators fire before the button' script client and
server. Any ideas? Thanks.

Nov 17 '05 #2
jm
"Suresh" <an*******@discussions.microsoft.com> wrote in message news:<11****************************@phx.gbl>...
Set CausesValidation property to false for the button that
you don't want to cause validation.

HTH,
Suresh.
-----Original Message-----
I have an ASP .NET page with three DataGrids. On one of

the datagrids
there are several vaildators. On another grid there is a

button that
does something else (changes data in a database). The

problem is that
that button causes the validator for the other grid to

fire, as they
are on the same form. But I don't want to validate any

data; I don't
want the validators to fire at all. I would enable=false

them, in my
button, but the validators fire before the button' script

client and
server. Any ideas? Thanks.
.

Thank you both very much!
Nov 17 '05 #3

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

Similar topics

21
by: Stefan Richter | last post by:
Hi, after coding for days on stupid form validations - Like: strings (min / max length), numbers(min / max value), money(min / max value), postcodes(min / max value), telefon numbers, email...
3
by: joes | last post by:
Hello I am using tomcat 3.3.1 for an intranet application with other third party software. Unfortunately I have to remove from the web.xml the web-app valiadtion, because of the old third party...
2
by: Beffmans | last post by:
Hi I have tried: RequiredFieldValidator1.Enabled=false; Any ideas? ch B
1
by: COHENMARVIN | last post by:
I'm working on a project which has a screen with edit fields, and two buttons on the bottom. One button says SAVE and the other button says DELETE. I want to use validators on the fields, but the...
0
by: thatsMaBoy | last post by:
Hi, I have a web service client application written in VB.Net. The application connects to a web service to download files. A web reference is added to the client application that exposes the...
1
by: HeavyD | last post by:
I have a form with numerous textboxes and I use the validating event to validate these items. If I want to close that form with the X button in the upper right corner of that window validation may...
0
by: robert112 | last post by:
Hi all, I have a WYSIWIG editor (fckeditor) and allow the users to create dynamic html which I save and display later on in the application. The aim is to have the user be able to create...
1
by: vsuser | last post by:
Hi, When the close button is pressed on a form (X in the upper right hand corner), any necessary validation occurs first. However, I do not want any validation to occur when exiting that way. ...
2
by: ryan.paquette | last post by:
Hello' I have a field in which I require validation in a before update event. The validation code I have works fine, no problem there. However I would like to turn off the default 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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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:
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
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,...

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.