Go Back   Velocity Reviews > Newsgroups > ASP Net
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

ASP Net - How do I turn off validation?

 
Thread Tools Search this Thread
Old 11-03-2003, 05:21 PM   #1
Default How do I turn off validation?


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.


jm
  Reply With Quote
Old 11-03-2003, 05:45 PM   #2
Giorgio Parmeggiani
 
Posts: n/a
Default Re: How do I turn off validation?
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" <> ha scritto nel messaggio
news: 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.





Giorgio Parmeggiani
  Reply With Quote
Old 11-04-2003, 01:48 AM   #3
jm
 
Posts: n/a
Default Re: How do I turn off validation?
"Suresh" <> wrote in message news:<113401c3a233$c05566c0$>...
> 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!


jm
  Reply With Quote
Old 06-27-2006, 05:09 PM   #4
ybechar
Junior Member
 
Join Date: Jun 2006
Posts: 1
Default Turn off validation
I have a very similar issue.
At the top of the page I have the input field (with their validators) to add new rows into a table.
At the botton of the page I have a GridView that displays the information. In that GridView I also let the user edit the information.
The problem comes right there when the user tries to edit the field on the GridView. The validators I have in the top of the page kick in and don't let me edit the data on the GridView.

I already tried setting the enable property of the validator to "FALSE" but that didn't work.

Anu suggestions on how to disable/turn off the validators when pressing the update link in the GridView????

Thanks in advance,


ybechar
ybechar is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Computer will not turn back on rshiggs General Help Related Topics 0 07-09-2007 08:29 PM
How we can do validation with velocity macro tags HemantS Software 0 06-12-2007 04:58 AM
How to turn $6 to $16000 in few days of web crawling please@dontreply.net DVD Video 0 02-02-2007 07:25 AM
TURN $5 INTO $15,000 IN ONLY 30 DAYS...HERES HOW! mosquitonose@hotmail.com DVD Video 1 01-19-2006 12:58 AM
TURN $5 INTO $15,000 IN ONLY 30 DAYS...HERES HOW! mosquitonose@hotmail.com DVD Video 0 01-18-2006 10:32 PM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46