![]() |
|
|
|||||||
![]() |
ASP Net - How do I turn off validation? |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
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 |
|
|
|
|
#2 |
|
Posts: n/a
|
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 |
|
|
|
#3 |
|
Posts: n/a
|
"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 |
|
|
|
#4 |
|
Junior Member
Join Date: Jun 2006
Posts: 1
|
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 |
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
|
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 |