473,387 Members | 1,516 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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

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.

Nov 19 '05 #1
3 1283
if you want more control of the controls in edit mode, look into making an
EditItemTemplate and adding the validation controls in there (as per your
requirements).

-Brock
DevelopMentor
http://staff.develop.com/ballen
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.

Nov 19 '05 #2
OK, are textbox'es on templates coumns available as class variables ?

Thanx
"Brock Allen" <ba****@NOSPAMdevelop.com> wrote in message
news:b8**************************@msnews.microsoft .com...
if you want more control of the controls in edit mode, look into making an
EditItemTemplate and adding the validation controls in there (as per your
requirements).
-Brock
DevelopMentor
http://staff.develop.com/ballen
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.


Nov 19 '05 #3
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

OK, are textbox'es on templates coumns available as class variables ?

Thanx

"Brock Allen" <ba****@NOSPAMdevelop.com> wrote in message
news:b8**************************@msnews.microsoft .com...
if you want more control of the controls in edit mode, look into
making an
EditItemTemplate and adding the validation controls in there (as per
your
requirements).
-Brock
DevelopMentor
http://staff.develop.com/ballen
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.

Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Hi | last post by:
I have a ASP.Net page that has a few fields to submit to a database and a datagrid to edit the entries. I have validation controls to make sure the user enters the right info on the first few...
4
by: Steve Jorgensen | last post by:
I'm restarting this thread with a different focus. The project I'm working on now id coming along and will be made to work, and it's too late to start over with a new strategy. Still, I'm not...
4
by: Jim Heavey | last post by:
Suppose I am using a series of controls in the footer of a datagrid which allows a user to enter "a new row of information to be added to the datagrid datasource". Some of these controls have a...
2
by: rodchar | last post by:
Hey all, I've got an asp.net page that has a textbox on it. The textbox has a requiredfieldvalidation associated with it. I've also got a datagrid with the edit,update,cancel links on it. When...
5
by: Chris | last post by:
Based upon some prevoius postings on what to do for adding a 'add' row to a datagrid I utilize the footer to create the 'add' row. The only issue is that I have it sharing the 'UpDate_Command' and...
4
by: David Colliver | last post by:
Hi all, I am having a slight problem that hopefully, someone can help me fix. I have a form on a page. Many items on the form have validation controls attached. Also on this form are...
5
by: Tina | last post by:
the Edit, Update, Cancel, and Delete buttons in my datagrid are causing validation elsewhere on the page. I want to specify that these buttons should not cause validation but they have no design...
1
by: Andrew Wan | last post by:
Is it possible to make some of the DataGrid functionality to client-side? Such as the Edit, Update, Cancel, Delete functionality? Everytime I click on a row's Edit button, I wait 2 seconds...
16
by: ARC | last post by:
Hello all, So I'm knee deep in this import utility program, and am coming up with all sorts of "gotcha's!". 1st off. On a "Find Duplicates Query", does anyone have a good solution for...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.