![]() Welcome! and rules Joel on Software |
Custom Validator in ASP.Net DataGrid Is it possible to use a Custom Validator control in an ASP.Net datagrid template column that use server side validation? It works if I use ClientScript validation, but I need to hit the server and do a table lookup on the data I'm am trying to validate. I can't seem to find any example of this.
Bill
If you're going to have to make a round-trip to the server to look something up in the database, then have the datagrid's "update" subprocedure run the new data against the table-lookup, and if it fails, alter the text of a label on the page (or otherwise indicate there's a problem, hopefully with an explanation why), and exit the sub there.
Greg Hurlman
Thanks, Greg.
Bill
No problem :)
Greg Hurlman
|