Groups | Blog | Home
all groups > asp.net datagrid control > august 2005 >

asp.net datagrid control : Checkbox validation in datagrid


kleykir
8/18/2005 3:13:43 PM
I have a datagrid that has 3 checkboxes (checkbox1, checkbox2 and
checkbox3). Before i update a record to the database i want to run a
validation script on The checkboxes. The function should check that
Checkbox3 is unchecked if either checkbox1 or checkbox2 is checked and also
it should be unchecked if checkbox1 and checkbox2 are checked. And also if
Checkbox3 is check none of the otehr 2 checkboxes should be checked.


I would be thankful if you could help me out on handing control validations
inside the Datagrid. Either of ClientsideValidation or servervalidation
would be fine.

-Kleykir

Brock Allen
8/19/2005 4:19:02 PM
You should look into using the CustomValidator control. You can provide client
side javascript for the validation in addition to the server event for the
validation logic.

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



[quoted text, click to view]


AddThis Social Bookmark Button