Strategy for Client Validation of Dates etc when doing Edit/Update on a datagrid.

M

Mr Newbie

I am using a DataGrid for Edit and Update. However, Im wondering what the
best strategy for client side validation would be as I dont think the
validators can reference the TextBoxes which come up in the Table Rendered
by the DataGrid when Editing/Updating or maybe I'm wrong ?????

I know I can validate inside the update event, but i wondered if anyone has
tried to do this client side ?


Cheers - Mr Newbie.
 
B

Brock Allen

Not inside a termplate, becuase the template tends to get created several
times, once per row from the datasource when databinding. They are there,
but you have to access them via the row using the FindControl API (at least
that's the typical way).
-Brock
DevelopMentor
http://staff.develop.com/ballen
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top